Skip to content
Snippets Groups Projects
Unverified Commit 60df3829 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

orga.name unique per university

parent 805fbe12
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ class University::Organization < ApplicationRecord
}
validates_presence_of :name
validates_uniqueness_of :name, scope: :university_id
# Organization can be created from extranet with only their name. Be careful for future validators.
# There is an attribute accessor above : `created_from_extranet`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment