Sha256: 1d564838fd98e01736570c45e193d92d99b9ec2290067f87ed184903777221a3

Contents?: true

Size: 465 Bytes

Versions: 25

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

class Agent
  include Mongoid::Document
  include Mongoid::Timestamps::Updated
  field :title, type: String
  field :number, type: String
  field :dob, type: Time
  embeds_many :names, as: :namable
  embeds_one :address
  belongs_to :game
  belongs_to :agency, touch: true, autobuild: true

  belongs_to :same_name, class_name: 'Band', inverse_of: :same_name

  has_and_belongs_to_many :accounts
  has_and_belongs_to_many :basics
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
mongoid-8.1.8 spec/support/models/agent.rb
mongoid-8.1.7 spec/support/models/agent.rb
mongoid-8.1.6 spec/support/models/agent.rb
mongoid-8.0.8 spec/support/models/agent.rb
mongoid-8.1.5 spec/support/models/agent.rb
mongoid-8.1.4 spec/support/models/agent.rb
mongoid-8.0.7 spec/support/models/agent.rb
mongoid-8.1.3 spec/support/models/agent.rb
mongoid-8.1.2 spec/support/models/agent.rb
mongoid-8.0.6 spec/support/models/agent.rb
mongoid-7.5.4 spec/support/models/agent.rb
mongoid-8.1.1 spec/support/models/agent.rb
mongoid-8.0.5 spec/support/models/agent.rb
mongoid-8.1.0 spec/support/models/agent.rb
mongoid-7.5.3 spec/support/models/agent.rb
mongoid-8.0.4 spec/support/models/agent.rb
mongoid-8.0.3 spec/support/models/agent.rb
mongoid-7.5.2 spec/support/models/agent.rb
mongoid-8.0.2 spec/support/models/agent.rb
mongoid-7.5.1 spec/support/models/agent.rb