Sha256: 869ae9783daed7de24e080700edf8ee1deb9b6d71c5ab04ac78fc71b34989081
Contents?: true
Size: 646 Bytes
Versions: 10
Compression:
Stored size: 646 Bytes
Contents
class HabtmmCompany include Mongoid::Document field :c_id, type: Integer field :e_ids, type: Array has_and_belongs_to_many :employees, primary_key: :e_id, foreign_key: :e_ids, class_name: 'HabtmmEmployee' end class HabtmmEmployee include Mongoid::Document field :e_id, type: Integer field :c_ids, type: Array field :habtmm_company_ids, type: Array has_and_belongs_to_many :companies, primary_key: :c_id, foreign_key: :c_ids, class_name: 'HabtmmCompany' end class HabtmmTicket include Mongoid::Document end class HabtmmPerson include Mongoid::Document has_and_belongs_to_many :tickets, class_name: 'HabtmmTicket' end
Version data entries
10 entries across 10 versions & 1 rubygems