add order and reservation table

This commit is contained in:
phyusin
2018-04-06 15:51:12 +06:30
parent 973482bdab
commit 4ddb83b035
3 changed files with 36 additions and 8 deletions

View File

@@ -1,6 +1,18 @@
class CreateDeliveries < ActiveRecord::Migration[5.1]
def change
create_table :deliveries do |t|
t.string :order_reservation_id, foreign_key: true, :null => false, :limit => 16
t.string :provider, :null => false
t.string :delivery_type, :null => false
t.string :township
t.string :address
t.string :direction_address
t.string :delivery_fee
t.string :remark
end
end
def down
drop_table :deliveries
end
end