Sha256: 6f3fc2039b03826d4061f30edd6a38def425f2306f7f6cedbbf80595e1b306f9

Contents?: true

Size: 185 Bytes

Versions: 17

Compression:

Stored size: 185 Bytes

Contents

# frozen_string_literal: true

class Circus
  include Mongoid::Document

  field :name
  field :slogan

  validates_uniqueness_of :slogan, allow_blank: true

  embeds_many :animals
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mongoid-8.1.8 spec/support/models/circus.rb
mongoid-8.1.7 spec/support/models/circus.rb
mongoid-8.1.6 spec/support/models/circus.rb
mongoid-8.0.8 spec/support/models/circus.rb
mongoid-8.1.5 spec/support/models/circus.rb
mongoid-8.1.4 spec/support/models/circus.rb
mongoid-8.0.7 spec/support/models/circus.rb
mongoid-8.1.3 spec/support/models/circus.rb
mongoid-8.1.2 spec/support/models/circus.rb
mongoid-8.0.6 spec/support/models/circus.rb
mongoid-8.1.1 spec/support/models/circus.rb
mongoid-8.0.5 spec/support/models/circus.rb
mongoid-8.1.0 spec/support/models/circus.rb
mongoid-8.0.4 spec/support/models/circus.rb
mongoid-8.0.3 spec/support/models/circus.rb
mongoid-8.0.2 spec/support/models/circus.rb
mongoid-8.0.1 spec/support/models/circus.rb