summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-06-08 14:03:07 +0300
committerValery Sizov <vsv2711@gmail.com>2015-06-09 10:55:35 +0300
commitf3e9df531eba44fdccb82353045b351121ff2e93 (patch)
treeefebc45dbdf5ab76e5a51c5a5983b223b330f284 /app/models
parent36dbe836bdf65563ee04dd4a819f8ccef5c9b831 (diff)
downloadgitlab-ci-f3e9df531eba44fdccb82353045b351121ff2e93.tar.gz
Fix of creation project with the same name
Diffstat (limited to 'app/models')
-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,