Skip to content

Commit 34b20d8

Browse files
authored
Merge pull request solidusio#6126 from chaimann/fix-migration-typo
Fix migration typo (missing keyword `foreign_key`)
2 parents ce43cf9 + 709d60d commit 34b20d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class AddPrimaryTaxonToProducts < ActiveRecord::Migration[7.0]
22
def change
33
change_table :spree_products do |t|
4-
t.references :primary_taxon, { to_table: :spree_taxons }
4+
t.references :primary_taxon, type: :integer, foreign_key: { to_table: :spree_taxons }
55
end
66
end
77
end

0 commit comments

Comments
 (0)