add second guardian fields

This commit is contained in:
bilal
2020-06-19 15:01:30 +02:00
parent 6b0ea5b7df
commit a6104b4563
11 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
module SecondGuardianPhotoable
extend ActiveSupport::Concern
included do
has_one_attached :guardian_2_photo
validates :guardian_2_photo, content_type: ["image/png", "image/jpeg"]
end
end