summaryrefslogtreecommitdiffstats
path: root/db/migrate/103_set_custom_fields_editable.rb
blob: d8a38d1683096f47ceb0602efbf34f3b0418cdab (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: false

class SetCustomFieldsEditable < ActiveRecord::Migration[4.2]
  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