diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-01-07 17:22:20 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-01-07 17:22:20 +0100 |
commit | 66eb0bdf9eb080ab3d8becd7cebe7081ca2a06b4 (patch) | |
tree | d6a10e04844ae1a2719917b86789b0a63b067146 /vendor/extensions/gallery_links/db | |
parent | 5e79240dca324674809194a3ccf57ed4e860444c (diff) | |
download | hmnoweb-66eb0bdf9eb080ab3d8becd7cebe7081ca2a06b4.tar.gz hmnoweb-66eb0bdf9eb080ab3d8becd7cebe7081ca2a06b4.tar.bz2 hmnoweb-66eb0bdf9eb080ab3d8becd7cebe7081ca2a06b4.zip |
Fix default date for GalleryLinks migration.
Diffstat (limited to 'vendor/extensions/gallery_links/db')
-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 |