new tables

This commit is contained in:
phyusin
2018-04-06 15:14:29 +06:30
parent 818f441529
commit 973482bdab
3 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class CreateOrderReservations < ActiveRecord::Migration[5.1]
def change
create_table :order_reservations do |t|
t.string :
t.string :order_type, :null => false
t.string :customer_id, :null => false
t.string :request_date, :null => false
t.string :reserved_date, :null => false
t.integer :item_count, :null => false, :default => 0
t.string :payment_type, :null => false
t.string :payment_status, :null => false
t.string :status, :null => false, :default => "new"
end
end
def down
drop_table :order_reservations
end
end

View File

@@ -0,0 +1,11 @@
class CreateOrderReservationItems < ActiveRecord::Migration[5.1]
def change
create_table :order_reservation_items do |t|
end
end
def down
drop_table :order_reservation_items
end
end

View File

@@ -0,0 +1,6 @@
class CreateDeliveries < ActiveRecord::Migration[5.1]
def change
create_table :deliveries do |t|
end
end
end