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
This commit is contained in:
Jean-Philippe Lang 2009-01-18 10:54:08 +00:00
parent 12792d8068
commit 08304afe54
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
class SetCustomFieldsEditable < ActiveRecord::Migration class SetCustomFieldsEditable < ActiveRecord::Migration
def self.up def self.up
UserCustomField.update_all('editable = false') UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
end end
def self.down def self.down
UserCustomField.update_all('editable = true') UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
end end
end end