2022-03-10 02:11:18 +00:00
|
|
|
class ApplicationFormUser
|
2021-03-17 07:33:31 +00:00
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
field :user_name
|
|
|
|
field :password
|
2022-03-10 02:11:18 +00:00
|
|
|
belongs_to :application_form_main
|
2021-03-17 07:33:31 +00:00
|
|
|
# belongs_to :user
|
|
|
|
# before_save do
|
|
|
|
# if self.new_record?
|
|
|
|
# self.user = User.find()
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
end
|