You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20101107130441_add_custom_fields_visible.rb 312B

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