1
0
Fork 0

AwakenType needs to be unqiue

This commit is contained in:
Andrew Tomaka 2015-10-16 11:40:11 -04:00
parent c4af77914e
commit d16bb6e03b

View file

@ -1,5 +1,6 @@
class AwakenType < ActiveRecord::Base class AwakenType < ActiveRecord::Base
has_paper_trail has_paper_trail
validates :name, presence: true validates :name, presence: true,
uniqueness: { case_sensitive: false }
end end