core/db/migrate/20150823073809_change_comable_products_and_comable_stocks.rb
Method change
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def change
reversible do |dir|
change_table :comable_stocks do |t|
dir.up { t.references :variant }
dir.down { t.remove :variant_id }