ref: master
plugins/suppliers/db/migrate/20130902115916_add_active_to_suppliers_plugin_supplier.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 |
class SuppliersPlugin::Supplier < ApplicationRecord end class AddActiveToSuppliersPluginSupplier < ActiveRecord::Migration def self.up add_column :suppliers_plugin_suppliers, :active, :boolean, default: true SuppliersPlugin::Supplier.update_all active: true end def self.down remove_column :suppliers_plugin_suppliers, :active end end |