diff options
author | Brendan Deere <brendan@stembolt.com> | 2016-08-25 14:35:48 -0700 |
---|---|---|
committer | Brendan Deere <brendan@stembolt.com> | 2016-08-25 14:56:50 -0700 |
commit | a490733b36bce54e0770c33ceb2c2e8c515daf3c (patch) | |
tree | e24196ecfec81d359bceb128035be4685999cbb1 /db/migrate | |
parent | 090ab3b40b52545e86a9788fa6c65321c5ff6f99 (diff) |
Add InstallmentDetails
The subscription class is responsable for grouping together the
information required for the system to place a subscriptions order on
behalf of a specific user.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160825211202_create_solidus_subscriptions_installment_details.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20160825211202_create_solidus_subscriptions_installment_details.rb b/db/migrate/20160825211202_create_solidus_subscriptions_installment_details.rb new file mode 100644 index 0000000..32be71d --- /dev/null +++ b/db/migrate/20160825211202_create_solidus_subscriptions_installment_details.rb @@ -0,0 +1,12 @@ +class CreateSolidusSubscriptionsInstallmentDetails < ActiveRecord::Migration + def change + create_table :solidus_subscriptions_installment_details do |t| + t.references :installment, foreign_key: true, 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 + end +end |