From d717f7db2279a35b1259030b9b31e966a341fe99 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 2 May 2021 17:42:23 -0400 Subject: Add items --- app/models/item.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/models/item.rb (limited to 'app') 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 -- cgit v1.2.3