diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-06-08 14:03:07 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-06-09 10:55:35 +0300 |
commit | f3e9df531eba44fdccb82353045b351121ff2e93 (patch) | |
tree | efebc45dbdf5ab76e5a51c5a5983b223b330f284 /app | |
parent | 36dbe836bdf65563ee04dd4a819f8ccef5c9b831 (diff) | |
download | gitlab-ci-f3e9df531eba44fdccb82353045b351121ff2e93.tar.gz |
Fix of creation project with the same name
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project.rb | 2 |
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, |