summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-08 14:03:07 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-08 14:26:52 +0300
commit9cf7bdf582035bfd0709a45f643ef817bc0a403b (patch)
treefff732adc7bf771f8995dd0888abdd0797318860
parent36dbe836bdf65563ee04dd4a819f8ccef5c9b831 (diff)
downloadgitlab-ci-9cf7bdf582035bfd0709a45f643ef817bc0a403b.tar.gz
Fix of creation project with the same name
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 308fde4..f103a88 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -49,7 +49,7 @@ class Project < ActiveRecord::Base
validates_presence_of :name, :timeout, :token, :default_ref,
:path, :ssh_url_to_repo, :gitlab_id
- validates_uniqueness_of :name
+ validates_uniqueness_of :gitlab_id
validates :polling_interval,
presence: true,