seminar2_old/app/models/seminar_user.rb

13 lines
289 B
Ruby

class SeminarUser
include Mongoid::Document
include Mongoid::Timestamps
field :user_name
field :password
belongs_to :seminar_main
# belongs_to :user
# before_save do
# if self.new_record?
# self.user = User.find()
# end
# end
end