diff options
-rw-r--r-- | app/models/item.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/item.rb b/app/models/item.rb index b570b4e..71482f5 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -1,5 +1,6 @@ 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 + validates :gid, :name, :description, presence: true + validates :usable, inclusion: { in: [true, false] } end |