Sha256: 3bf75419be18dab8936afd856aab233d4834815703ddfce693df48591cb03df3

Contents?: true

Size: 619 Bytes

Versions: 1

Compression:

Stored size: 619 Bytes

Contents

class CreateSolidusSubscriptionsInstallmentDetails < SolidusSupport::Migration[4.2]
  def change
    create_table :solidus_subscriptions_installment_details do |t|
      t.references :installment, null: false
      t.string :state, null: false

      t.timestamps null: false
    end

    add_index(
      :solidus_subscriptions_installment_details,
      :installment_id,
      name: :index_installment_details_on_installment_id
    )

    add_foreign_key(
      :solidus_subscriptions_installment_details,
      :solidus_subscriptions_installments,
      column: :installment_id
    )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_subscriptions-alpha-0.0.4 db/migrate/20160825211202_create_solidus_subscriptions_installment_details.rb