@@ -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( |
|
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( |
|
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