summaryrefslogtreecommitdiffstats
path: root/db/migrate/103_set_custom_fields_editable.rb
blob: 937649e61d63225396cb358eee5904ea62943db7 (plain)
1
2
3
4
5
6
7
8
9
class SetCustomFieldsEditable < ActiveRecord::Migration
  def self.up
    UserCustomField.update_all("editable = #{CustomField.connection.quoted_false}")
  end

  def self.down
    UserCustomField.update_all("editable = #{CustomField.connection.quoted_true}")
  end
end