Sha256: ef26331b9e8d77087627a87592a004b65c099139a90b60085cb7ac3a901a2c86
Contents?: true
Size: 707 Bytes
Versions: 10
Compression:
Stored size: 707 Bytes
Contents
class HmmCompany include Mongoid::Document field :p, type: Integer has_many :emails, primary_key: :p, foreign_key: :f, class_name: 'HmmEmail' end class HmmEmail include Mongoid::Document field :f, type: Integer belongs_to :company, primary_key: :p, foreign_key: :f, class_name: 'HmmCompany' end class HmmSchool include Mongoid::Document has_many :students, class_name: 'HmmStudent' field :district, type: String field :team, type: String end class HmmStudent include Mongoid::Document belongs_to :school, class_name: 'HmmSchool' field :name, type: String field :grade, type: Integer, default: 3 end class HmmTicket include Mongoid::Document belongs_to :person end
Version data entries
10 entries across 10 versions & 1 rubygems