summaryrefslogtreecommitdiff
path: root/db/migrate/20200917072152_add_subscription_reference_to_orders.rb
blob: 6c11b40901e71a03ed9f17ed01fbc7e46b549ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
class AddSubscriptionReferenceToOrders < ActiveRecord::Migration[5.2]
  def change
    add_reference(
      :spree_orders,
      :subscription,
      null: true,
      type: :integer,
      foreign_key: { to_table: :solidus_subscriptions_subscriptions }
    )
  end
end