]> git.openstreetmap.org Git - rails.git/blob - db/migrate/033_change_diary_entries_language.rb
Merge remote-tracking branch 'upstream/pull/5140'
[rails.git] / db / migrate / 033_change_diary_entries_language.rb
1 class ChangeDiaryEntriesLanguage < ActiveRecord::Migration[4.2]
2   def self.up
3     remove_column "diary_entries", "language"
4     add_column "diary_entries", "language_code", :string, :null => false, :default => "en"
5   end
6
7   def self.down
8     remove_column "diary_entries", "language_code"
9     add_column "diary_entries", "language", :string, :limit => 3
10   end
11 end