103_set_custom_fields_editable.rb
9 lines
| 270 B
| text/x-ruby
|
RubyLexer
|
r2274 | class SetCustomFieldsEditable < ActiveRecord::Migration | ||
def self.up | ||||
|
r2277 | UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}") | ||
|
r2274 | end | ||
def self.down | ||||
|
r2277 | UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}") | ||
|
r2274 | end | ||
end | ||||