From aba212e13062c43a1192ef885b05145ac1cc9fe7 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 23 May 2021 17:06:34 -0400 Subject: Bazaar with buy orders, sell orders, and order cancellation --- db/migrate/20210523151747_create_bazaar_orders.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/20210523151747_create_bazaar_orders.rb (limited to 'db/migrate') diff --git a/db/migrate/20210523151747_create_bazaar_orders.rb b/db/migrate/20210523151747_create_bazaar_orders.rb new file mode 100644 index 0000000..24bded3 --- /dev/null +++ b/db/migrate/20210523151747_create_bazaar_orders.rb @@ -0,0 +1,13 @@ +class CreateBazaarOrders < ActiveRecord::Migration[6.1] + def change + create_table :bazaar_orders do |t| + t.references :character, null: false, foreign_key: true + t.references :item, null: false, foreign_key: true + t.integer :quantity + t.integer :price_each + t.boolean :buy_order + + t.timestamps + end + end +end -- cgit v1.2.3