diff --git a/db/migrate/103_set_custom_fields_editable.rb b/db/migrate/103_set_custom_fields_editable.rb index 465c929ec..937649e61 100644 --- a/db/migrate/103_set_custom_fields_editable.rb +++ b/db/migrate/103_set_custom_fields_editable.rb @@ -1,9 +1,9 @@ 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