Sha256: fe2a488b89da7874121f70f786bac79d2dae5abd955224470f5a53367a209bb5

Contents?: true

Size: 196 Bytes

Versions: 8

Compression:

Stored size: 196 Bytes

Contents

class Dog
  include Mongoid::Document
  field :name, type: String
  has_and_belongs_to_many :breeds
  has_and_belongs_to_many :fire_hydrants, primary_key: :location
  default_scope asc(:name)
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
mongoid-3.1.7 spec/app/models/dog.rb
mongoid-4.0.0.alpha1 spec/app/models/dog.rb
mongoid-3.1.6 spec/app/models/dog.rb
sepastian-mongoid-rails4-4.0.1.alpha spec/app/models/dog.rb
sepastian-mongoid-rails4-4.0.0.alpha spec/app/models/dog.rb
mongoid-3.1.5 spec/app/models/dog.rb
mongoid_heroku_stable-4.0.0 spec/app/models/dog.rb
mongoid_rails4-4.0.0 spec/app/models/dog.rb