diff options
Diffstat (limited to 'vendor/extensions')
-rw-r--r-- | vendor/extensions/gallery_links/db/migrate/2_replace_title_with_date_bands_venue.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/extensions/gallery_links/db/migrate/2_replace_title_with_date_bands_venue.rb b/vendor/extensions/gallery_links/db/migrate/2_replace_title_with_date_bands_venue.rb index d53125d..01bb932 100644 --- a/vendor/extensions/gallery_links/db/migrate/2_replace_title_with_date_bands_venue.rb +++ b/vendor/extensions/gallery_links/db/migrate/2_replace_title_with_date_bands_venue.rb @@ -1,6 +1,6 @@ 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: 'Unknown bands', index: true add_column :refinery_gallery_links, :venue, :string, index: true @@ -23,7 +23,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 |