2009-01-17 14:18:04 +03:00
|
|
|
class SetCustomFieldsEditable < ActiveRecord::Migration
|
|
|
|
def self.up
|
2009-01-18 13:54:08 +03:00
|
|
|
UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
|
2009-01-17 14:18:04 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2009-01-18 13:54:08 +03:00
|
|
|
UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
|
2009-01-17 14:18:04 +03:00
|
|
|
end
|
|
|
|
end
|