socialforge/db/migrate/044_set_language_length_to_...

10 lines
209 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class SetLanguageLengthToFive < ActiveRecord::Migration
def self.up
change_column :users, :language, :string, :limit => 5, :default => ""
end
def self.down
raise IrreversibleMigration
end
end