super-graph/example/db/migrate/20190322200743_purchases.rb
Vikram Rangnekar b9d38a5e9d First commit
2019-03-24 09:57:29 -04:00

13 lines
314 B
Ruby

class Purchases < ActiveRecord::Migration[5.2]
def change
create_table :purchases do |t|
t.references :customer, foreign_key: true
t.references :product, foreign_key: true
t.string :sale_type
t.integer :quantity
t.datetime :due_date
t.datetime :returned
end
end
end