Add a list of languages and fix a few issues with the schema. Also get
[rails.git] / db / migrate / 033_change_diary_entries_language.rb
1 class ChangeDiaryEntriesLanguage < ActiveRecord::Migration
2   def self.up
3     remove_column "diary_entries", "language"
4     add_column "diary_entries", "language_code", :string
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