Sha256: 8ab746e7d780355bab208e508d3594c1a8d870778bbeeb14037c86e21efb51f5

Contents?: true

Size: 536 Bytes

Versions: 6

Compression:

Stored size: 536 Bytes

Contents

class CreateTangSubscriptions < ActiveRecord::Migration
  def change
    create_table :tang_subscriptions do |t|
      t.string :stripe_id
      t.integer :customer_id, index: true
      t.integer :plan_id, index: true, foreign_key: true

      t.decimal :application_fee_percent
      t.integer :quantity
      t.decimal :tax_percent
      t.timestamp :trial_end

      t.integer :coupon_id, index: true, foreign_key: true
      t.timestamp :coupon_start

      t.string :status
      
      t.timestamps null: false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.2 db/migrate/20160929171640_create_tang_subscriptions.rb
tang-0.2.1 db/migrate/20160929171640_create_tang_subscriptions.rb
tang-0.2.0 db/migrate/20160929171640_create_tang_subscriptions.rb
tang-0.1.0 db/migrate/20160929171640_create_tang_subscriptions.rb
tang-0.0.9 db/migrate/20160929171640_create_tang_subscriptions.rb
tang-0.0.8 db/migrate/20160929171640_create_tang_subscriptions.rb