Sha256: 94bb2f2479625354d0ce57691066aa02244332baab97fe901460c1ab7e1e9124

Contents?: true

Size: 591 Bytes

Versions: 11

Compression:

Stored size: 591 Bytes

Contents

class CreateSolidusSubscriptionsInstallments < SolidusSupport::Migration[4.2]
  def change
    create_table :solidus_subscriptions_installments do |t|
      t.references :subscription, index: true, null: false
      t.references :order, index: true
      t.date :actionable_date

      t.timestamps null: false
    end

    add_foreign_key(
      :solidus_subscriptions_installments,
      :solidus_subscriptions_subscriptions,
      column: :subscription_id
    )

    add_foreign_key(
      :solidus_subscriptions_installments,
      :spree_orders,
      column: :order_id
    )
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
solidus_subscriptions-2.0.2 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-2.0.1 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-2.0.0 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-1.1.0 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-1.0.1 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-1.0.0 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-1.0.0.rc1 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-alpha-0.0.5 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-alpha-0.0.3 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-alpha-0.0.2 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb
solidus_subscriptions-alpha-0.0.1 db/migrate/20160825202248_create_solidus_subscriptions_installments.rb