socialforge/db/migrate/103_set_custom_fields_edita...

10 lines
270 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class SetCustomFieldsEditable < ActiveRecord::Migration
def self.up
UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
end
def self.down
UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
end
end