summaryrefslogtreecommitdiff
path: root/app/models/item.rb
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 /app/models/item.rb
parent7997e112fbc67eef309bb3969ad41f90a8bfbc89 (diff)
Add items
Diffstat (limited to 'app/models/item.rb')
-rw-r--r--app/models/item.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/item.rb b/app/models/item.rb
new file mode 100644
index 0000000..b570b4e
--- /dev/null
+++ b/app/models/item.rb
@@ -0,0 +1,5 @@
+class Item < ApplicationRecord
+ enum equip_slot: [:mainhand, :offhand, :head, :neck, :back, :torso, :grip,
+ :left_ring, :right_ring, :waist, :legs, :feet, :curio]
+ validates :gid, :name, :description, :usable, presence: true
+end