10 lines
312 B
Ruby
10 lines
312 B
Ruby
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
|