blob: a8e27dbb6dabe77d150c1306ba55ade038760d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: false
class AddCustomFieldsVisible < ActiveRecord::Migration[4.2]
def self.up
add_column :custom_fields, :visible, :boolean, :null => false, :default => true
CustomField.update_all("visible = #{CustomField.connection.quoted_true}")
end
def self.down
remove_column :custom_fields, :visible
end
end
|