Sha256: a61d84a5979eea12f30a21b978117c5bd975449268e06393f24bccb67c279b9b

Contents?: true

Size: 655 Bytes

Versions: 8

Compression:

Stored size: 655 Bytes

Contents

class CreateStripePlans < ActiveRecord::Migration[5.0]
  def change
    create_table :stripe_plans do |t|
      t.string :stripe_id, index: true, null: false
      t.integer :amount_cents, null: false
      t.string :amount_currency, null: false
      t.string :currency, null: false
      t.string :interval, null: false
      t.integer :interval_count, null: false
      t.boolean :livemode, default: true, null: false
      t.text :metadata
      t.string :name, null: false
      t.string :statement_descriptor
      t.integer :trial_period_days
      t.datetime :deleted_at, index: true
      t.datetime :created
      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stripe_model_callbacks-0.1.7 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.6 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.5 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.4 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.3 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.2 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.1 db/migrate/20180206115810_create_stripe_plans.rb
stripe_model_callbacks-0.1.0 db/migrate/20180206115810_create_stripe_plans.rb