Sha256: f2916d1ceb89a25ec8b281e014ce603e93805c4cb09d02cb08a1eca29dffc3ea

Contents?: true

Size: 321 Bytes

Versions: 7

Compression:

Stored size: 321 Bytes

Contents

class AddBillingAddressToSubscriptions < ActiveRecord::Migration[5.2]
  def change
    add_reference(
      :solidus_subscriptions_subscriptions,
      :billing_address,
      type: :integer,
      index: { name: :index_subscription_billing_address_id },
      foreign_key: { to_table: :spree_addresses }
    )
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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