Upstream sync

This commit is contained in:
Senad Uka
2020-06-16 17:11:04 +02:00
parent 028e946fcf
commit 9a540efc74
15 changed files with 141 additions and 11 deletions

View File

@@ -39,6 +39,7 @@ class AppearanceRelease < ApplicationRecord
# These validations apply to releases being signed by a minor
with_options if: :minor? do
validates :guardian_first_name, :guardian_last_name, presence: true
validates :guardian_email, email: true, allow_blank: true
end
validates :person_photo, content_type: face_photo_acceptable_content_types