##// END OF EJS Templates
Fixes 103_set_custom_fields_editable migration from r2276 (#2526)....
Jean-Philippe Lang -
r2277:08304afe547d
parent child
Show More
@@ -1,9 +1,9
1 class SetCustomFieldsEditable < ActiveRecord::Migration
1 class SetCustomFieldsEditable < ActiveRecord::Migration
2 def self.up
2 def self.up
3 UserCustomField.update_all('editable = false')
3 UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
4 end
4 end
5
5
6 def self.down
6 def self.down
7 UserCustomField.update_all('editable = true')
7 UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
8 end
8 end
9 end
9 end
General Comments 0
You need to be logged in to leave comments. Login now