diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210523151747_create_bazaar_orders.rb | 13 |
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 |