super-graph/rails-app/db/migrate/20190322200743_purchases.rb
2019-04-11 01:10:51 -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