20160414194510_create_pre_purchases.rb 361 B

123456789101112131415161718
  1. class CreatePrePurchases < ActiveRecord::Migration
  2. def change
  3. create_table :pre_purchases do |t|
  4. t.integer :supplier_id
  5. t.integer :user_id
  6. t.integer :pointsale_id
  7. t.integer :product_id
  8. t.integer :quantity
  9. t.integer :amount
  10. t.integer :tax
  11. t.integer :total
  12. t.timestamps null: false
  13. end
  14. end
  15. end