aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180107152351_replace_title_with_date_bands_venue.refinery_gallery_links.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180107152351_replace_title_with_date_bands_venue.refinery_gallery_links.rb b/db/migrate/20180107152351_replace_title_with_date_bands_venue.refinery_gallery_links.rb
index 8e2fcbd..86e9dd8 100644
--- a/db/migrate/20180107152351_replace_title_with_date_bands_venue.refinery_gallery_links.rb
+++ b/db/migrate/20180107152351_replace_title_with_date_bands_venue.refinery_gallery_links.rb
@@ -1,7 +1,7 @@
# This migration comes from refinery_gallery_links (originally 2)
class ReplaceTitleWithDateBandsVenue < ActiveRecord::Migration
def up
- add_column :refinery_gallery_links, :date, :date, null: false, default: '0000-00-00', index: true
+ add_column :refinery_gallery_links, :date, :date, null: false, default: '2000-01-01', index: true
add_column :refinery_gallery_links, :bands, :string, null: false, default: 'Unkown bands', index: true
add_column :refinery_gallery_links, :venue, :string, index: true
@@ -24,7 +24,7 @@ class ReplaceTitleWithDateBandsVenue < ActiveRecord::Migration
g.title = "#{g.bands} #{g.strftime('%d/%m/%y')} @ #{g.venue}."
g.save!
end
-
+
remove_column :refinery_gallery_links, :venue
remove_column :refinery_gallery_links, :bands
remove_column :refinery_gallery_links, :date