seminar2/app/models/seminar_user.rb

13 lines
289 B
Ruby
Raw Permalink Normal View History

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