class CreateOrders < ActiveRecord::Migration[5.1]
  def change
    create_table :orders do |t|
      t.integer :user_id
      t.string :order_no
      t.datetime :payment_time
      t.integer :book_id

      t.timestamps
    end
  end
end
