diff --git a/db/migrate/20230308075421_create_invoices.rb b/db/migrate/20230308075421_create_invoices.rb index 4211969e50..d28f7a0a2e 100644 --- a/db/migrate/20230308075421_create_invoices.rb +++ b/db/migrate/20230308075421_create_invoices.rb @@ -3,7 +3,7 @@ class CreateInvoices < ActiveRecord::Migration[6.1] def change create_table :invoices do |t| - t.references :order, foreign_key: true, foreign_key: { to_table: :spree_orders } + t.references :order, foreign_key: { to_table: :spree_orders } t.string :status t.integer :number t.jsonb :data