]> git.openstreetmap.org Git - rails.git/blob - db/migrate/033_change_diary_entries_language.rb
Fix missing require in migrations.
[rails.git] / db / migrate / 033_change_diary_entries_language.rb
1 class ChangeDiaryEntriesLanguage < ActiveRecord::Migration
2   def self.up
3     change_column "diary_entries", "language", :string, :default => "en", :null => false
4   end
5
6   def self.down
7     change_column "diary_entries", "language", :string, :limit => 3, :default => nil, :null => true
8   end
9 end