Sha256: 19da203671e02e57e550379833d9fcdb486bcdbede6793046e633aeec27da513

Contents?: true

Size: 914 Bytes

Versions: 8

Compression:

Stored size: 914 Bytes

Contents

class CreateStripeSubscriptions < ActiveRecord::Migration[5.0]
  def change
    create_table :stripe_subscriptions do |t|
      t.string :stripe_id, index: true, null: false
      t.integer :application_fee_percent
      t.string :billing
      t.boolean :cancel_at_period_end
      t.datetime :canceled_at
      t.datetime :current_period_start
      t.datetime :current_period_end
      t.string :stripe_customer_id, index: true
      t.integer :days_until_due
      t.string :discount, index: true
      t.datetime :ended_at
      t.boolean :livemode, default: true
      t.text :metadata
      t.string :stripe_plan_id, index: true
      t.integer :quantity
      t.datetime :start
      t.integer :tax_percent
      t.string :status, index: true
      t.datetime :trial_start
      t.datetime :trial_end
      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/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.6 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.5 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.4 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.3 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.2 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.1 db/migrate/20180206115816_create_stripe_subscriptions.rb
stripe_model_callbacks-0.1.0 db/migrate/20180206115816_create_stripe_subscriptions.rb