Skip to content

Commit

Permalink
Add uniqueness validation to repository remote url
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Nov 7, 2023
1 parent d9cad73 commit f5a7b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Repository < ApplicationRecord
MEDIA_DIR = 'media'.freeze

validates :name, presence: true, uniqueness: { case_sensitive: false }
validates :remote, presence: true
validates :remote, presence: true, uniqueness: { case_sensitive: false }

validate :repo_is_accessible, on: :create

Expand Down

0 comments on commit f5a7b7f

Please sign in to comment.