bigdir/db/migrate/20090401231134_add_active_f...

10 lines
231 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddActiveFieldToEnumerations < ActiveRecord::Migration
def self.up
add_column :enumerations, :active, :boolean, :default => true, :null => false
end
def self.down
remove_column :enumerations, :active
end
end