1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/db/migrate/20160803085201_create_coupons.rb

17 lines
349 B
Ruby
Raw Normal View History

2016-08-03 17:25:00 +02:00
class CreateCoupons < ActiveRecord::Migration
def change
create_table :coupons do |t|
t.string :name
t.string :code
t.integer :percent_off
t.datetime :valid_until
t.integer :max_usages
t.integer :usages
t.boolean :active
t.string :stp_coupon_id
t.timestamps null: false
end
end
end