Class: CreateSubscriptions
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSubscriptions
- Defined in:
- lib/generators/bank_teller/templates/create_subscriptions.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/bank_teller/templates/create_subscriptions.rb', line 2 def change create_table :subscriptions do |t| t.integer :user_id, null: false t.string :name, null: false t.string :stripe_id, null: false t.string :stripe_plan, null: false t.integer :quantity, null: false t.string :stripe_plan t.datetime :trial_ends_at t.datetime :ends_at t. null: false end end |