Sha256: b2bcb29c442a9750219eeb1db5537566aac9c2a500dd1305eaf1ed91b4f33934

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

class CreateTangCoupons < ActiveRecord::Migration
  def change
    create_table :tang_coupons do |t|
      t.string :stripe_id
      t.string :duration
      t.integer :amount_off
      t.string :currency
      t.integer :duration_in_months
      t.integer :max_redemptions
      t.integer :percent_off
      t.timestamp :redeem_by
      t.integer :redemptions

      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/20160929152510_create_tang_coupons.rb
tang-0.2.1 db/migrate/20160929152510_create_tang_coupons.rb
tang-0.2.0 db/migrate/20160929152510_create_tang_coupons.rb
tang-0.1.0 db/migrate/20160929152510_create_tang_coupons.rb
tang-0.0.9 db/migrate/20160929152510_create_tang_coupons.rb
tang-0.0.8 db/migrate/20160929152510_create_tang_coupons.rb