Adding back the primary taxon migration

This commit is contained in:
Will Marshall
2014-05-30 11:24:16 +10:00
parent 5b58bf2c71
commit dd0907addd

View File

@@ -0,0 +1,7 @@
class AddPrimaryTaxonToProducts < ActiveRecord::Migration
def change
add_column :spree_products, :primary_taxon_id, :integer
add_index :spree_products, :primary_taxon_id
add_foreign_key :spree_products, :spree_taxons, column: :primary_taxon_id
end
end