Commit bde19c06 authored by Robert Speicher's avatar Robert Speicher

Update failure message for UsersProject uniqueness validation

Was "User has already been taken", is now "User already exists in
project".
parent a595f894
...@@ -14,7 +14,7 @@ class UsersProject < ActiveRecord::Base ...@@ -14,7 +14,7 @@ class UsersProject < ActiveRecord::Base
after_save :update_repository after_save :update_repository
after_destroy :update_repository after_destroy :update_repository
validates_uniqueness_of :user_id, scope: [:project_id] validates_uniqueness_of :user_id, scope: [:project_id], message: "already exists in project"
validates_presence_of :user_id validates_presence_of :user_id
validates_presence_of :project_id validates_presence_of :project_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment