Sha256: c0e11f41fa4bf71dd98cf4880c852b6363b7411a90d9c90c5f5beec2c92f2502

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-2.0.1 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-2.0.0 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-1.1.0 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-1.0.1 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-1.0.0 db/migrate/20200917072152_add_subscription_reference_to_orders.rb
solidus_subscriptions-1.0.0.rc1 db/migrate/20200917072152_add_subscription_reference_to_orders.rb