X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/11b1f7d739f7d85c8a65c2a8337394b333c8eee1..d8b9b6dd58cf049acc6cf647f80ceb5e3e200cd6:/db/migrate/033_change_diary_entries_language.rb?ds=sidebyside diff --git a/db/migrate/033_change_diary_entries_language.rb b/db/migrate/033_change_diary_entries_language.rb index 2ca844884..6c3ae7de2 100644 --- a/db/migrate/033_change_diary_entries_language.rb +++ b/db/migrate/033_change_diary_entries_language.rb @@ -1,7 +1,7 @@ -class ChangeDiaryEntriesLanguage < ActiveRecord::Migration +class ChangeDiaryEntriesLanguage < ActiveRecord::Migration[4.2] def self.up remove_column "diary_entries", "language" - add_column "diary_entries", "language_code", :string + add_column "diary_entries", "language_code", :string, :null => false, :default => "en" end def self.down