Tweak migration to ensure that migrating from a database with existing
diary entries sets a default language for those entries.
This commit is contained in:
parent
46c76da1fe
commit
bb1198fb61
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
class ChangeDiaryEntriesLanguage < ActiveRecord::Migration
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue