Add attribute Passport#image
This commit is contained in:
parent
0cfc7dff88
commit
34f486d504
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
class Passport < ApplicationRecord
|
||||
enum sex: %i[male female]
|
||||
|
||||
has_one_attached :image
|
||||
|
||||
validates :surname, presence: true
|
||||
validates :given_name, presence: true
|
||||
validates :sex, presence: true
|
||||
|
|
Reference in a new issue