new tables
This commit is contained in:
19
db/migrate/20180406080240_create_order_reservations.rb
Normal file
19
db/migrate/20180406080240_create_order_reservations.rb
Normal 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
|
||||
Reference in New Issue
Block a user