X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5b3b288fc2c4dace76f5c6c60199cf434e2646b9..db13180c70035a81f36f843fe95e2a6326d5c554:/db/migrate/033_change_diary_entries_language.rb diff --git a/db/migrate/033_change_diary_entries_language.rb b/db/migrate/033_change_diary_entries_language.rb index 2ca844884..db011d83f 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[5.0] 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