AwakenType needs to be unqiue
This commit is contained in:
parent
c4af77914e
commit
d16bb6e03b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue