mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
19 lines
384 B
Ruby
19 lines
384 B
Ruby
# frozen_string_literal:true
|
|
|
|
class CreateCoupons < ActiveRecord::Migration[4.2]
|
|
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
|