Commit 08304afe authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixes 103_set_custom_fields_editable migration from r2276 (#2526).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2279 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 12792d80
class SetCustomFieldsEditable < ActiveRecord::Migration
def self.up
UserCustomField.update_all('editable = false')
UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
end
def self.down
UserCustomField.update_all('editable = true')
UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment