Sha256: bbbb2b712c6c2c111044e3df341c8b80a0454e31a3e75fd00f5ee26c8c558ac1
Contents?: true
Size: 841 Bytes
Versions: 10
Compression:
Stored size: 841 Bytes
Contents
class HomCollege include Mongoid::Document has_one :accreditation, class_name: 'HomAccreditation' field :state, type: String end class HomAccreditation include Mongoid::Document belongs_to :college, class_name: 'HomCollege' field :degree, type: String field :year, type: Integer, default: 2012 end class HomAccreditation::Child include Mongoid::Document belongs_to :hom_college end module HomNs class PrefixedParent include Mongoid::Document has_one :child, class_name: 'PrefixedChild' end class PrefixedChild include Mongoid::Document belongs_to :parent, class_name: 'PrefixedParent' end end class HomPolymorphicParent include Mongoid::Document has_one :p_child, as: :parent end class HomPolymorphicChild include Mongoid::Document belongs_to :p_parent, polymorphic: true end
Version data entries
10 entries across 10 versions & 1 rubygems