Commit 58198652 authored by Rémy Coutable's avatar Rémy Coutable

Fix a PathLock uniqueness validation

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d961f6eb
......@@ -4,7 +4,7 @@ class PathLock < ActiveRecord::Base
validates :project, presence: true
validates :user, presence: true
validates :path, presence: true, uniqueness: { scope: :project }
validates :path, presence: true, uniqueness: { scope: :project_id }
validate :path_unique_validation
def downstream?(path)
......
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