trustieforge/db/migrate/102_add_custom_fields_edita...

10 lines
216 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class AddCustomFieldsEditable < ActiveRecord::Migration
def self.up
add_column :custom_fields, :editable, :boolean, :default => true
end
def self.down
remove_column :custom_fields, :editable
end
end