summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-02 17:42:23 -0400
committerDavid Gay <david@davidgay.org>2021-05-02 17:42:23 -0400
commitd717f7db2279a35b1259030b9b31e966a341fe99 (patch)
tree085791f07eba5ff232909baddcb267aa9061adaa /db/migrate
parent7997e112fbc67eef309bb3969ad41f90a8bfbc89 (diff)
Add items
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210502212517_create_items.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20210502212517_create_items.rb b/db/migrate/20210502212517_create_items.rb
new file mode 100644
index 0000000..1bb17ce
--- /dev/null
+++ b/db/migrate/20210502212517_create_items.rb
@@ -0,0 +1,14 @@
+class CreateItems < ActiveRecord::Migration[6.1]
+ def change
+ create_table :items do |t|
+ t.string :gid
+ t.string :name
+ t.text :description
+ t.integer :equip_slot
+ t.boolean :usable
+ t.jsonb :whatnot
+
+ t.timestamps
+ end
+ end
+end