forked from solidusio/solidus_subscriptions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Subscription configuration values
:end_date, :interval_length and :interval_units are stored on the subscription line items before the order is completed. Once the order is completed we want a canonical source for these values. These values will now be stored on the subscription itself, once it is created
- Loading branch information
Brendan Deere
committed
Feb 3, 2017
1 parent
9f3a33f
commit b01c9d0
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
db/migrate/20170112012407_add_config_options_to_subscriptions.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AddConfigOptionsToSubscriptions < ActiveRecord::Migration | ||
def change | ||
add_column :solidus_subscriptions_subscriptions, :interval_length, :integer | ||
add_column :solidus_subscriptions_subscriptions, :interval_units, :integer | ||
add_column :solidus_subscriptions_subscriptions, :end_date, :datetime | ||
end | ||
end |
2 changes: 2 additions & 0 deletions
2
lib/solidus_subscriptions/testing_support/factories/subscription_factory.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters