Sha256: 47f1affafbcd503c0a245b991ea500ffa3bd55da8e3f4a1d5cb2f012814a6def
Contents?: true
Size: 828 Bytes
Versions: 27
Compression:
Stored size: 828 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module ReversePopulationSpec class Company include Mongoid::Document has_many :emails, class_name: 'ReversePopulationSpec::Email' has_one :founder, class_name: 'ReversePopulationSpec::Founder' end class Email include Mongoid::Document belongs_to :company, class_name: 'ReversePopulationSpec::Company' end class Founder include Mongoid::Document belongs_to :company, class_name: 'ReversePopulationSpec::Company' end class Animal include Mongoid::Document field :a, type: String has_and_belongs_to_many :zoos, class_name: 'ReversePopulationSpec::Zoo' end class Zoo include Mongoid::Document field :z, type: String has_and_belongs_to_many :animals, class_name: 'ReversePopulationSpec::Animal' end end
Version data entries
27 entries across 27 versions & 2 rubygems