summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-23 17:06:34 -0400
committerDavid Gay <david@davidgay.org>2021-05-23 17:06:34 -0400
commitaba212e13062c43a1192ef885b05145ac1cc9fe7 (patch)
tree61e3850ec0c86913a7e2d42076bcd73aa59f480a /db/migrate
parent44facc2e567eb3c045ce082428f42276e45b0202 (diff)
Bazaar with buy orders, sell orders, and order cancellation
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210523151747_create_bazaar_orders.rb13
1 files changed, 13 insertions, 0 deletions
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