add order and reservation table
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user