diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 21:12:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-02 21:12:15 +0300 |
commit | e28bb9d18133611eef2a1357c57dc57ca97cfd5a (patch) | |
tree | aee3bab9fa515d456ab7fff5b7c9819ef9da0244 /app/models/lfs_object.rb | |
parent | 9c33625b8e47c6aa96095018a0c1dd3f22c2ce1e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/lfs_object.rb')
-rw-r--r-- | app/models/lfs_object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/lfs_object.rb b/app/models/lfs_object.rb index caeffae7bda..8aa48561e60 100644 --- a/app/models/lfs_object.rb +++ b/app/models/lfs_object.rb @@ -15,7 +15,7 @@ class LfsObject < ApplicationRecord scope :for_oids, -> (oids) { where(oid: oids) } scope :for_oid_and_size, -> (oid, size) { find_by(oid: oid, size: size) } - validates :oid, presence: true, uniqueness: true + validates :oid, presence: true, uniqueness: true, format: { with: /\A\h{64}\z/ } mount_file_store_uploader LfsObjectUploader |