Sha256: d30ffcc826280bdc6f36f098fe2cbf593182655911813147f1aeec4de8ef2074

Contents?: true

Size: 250 Bytes

Versions: 91

Compression:

Stored size: 250 Bytes

Contents

class Patient
  include Mongoid::Document
  field :title, type: String
  store_in collection: "inpatient"
  embeds_many :addresses, as: :addressable
  embeds_one :email
  embeds_one :name, as: :namable
  validates_presence_of :title, on: :create
end

Version data entries

91 entries across 86 versions & 8 rubygems

Version Path
mongoid-paranoia-1.0.1 spec/app/models/patient.rb
mongoid-5.0.0.beta spec/app/models/patient.rb
mongoid-3.1.7 spec/app/models/patient.rb
mongoid-4.0.2 spec/app/models/patient.rb
mongoid-4.0.1 spec/app/models/patient.rb
mongoid-paranoia-1.0.0 spec/app/models/patient.rb
mongoid-versioning-1.0.0 spec/app/models/patient.rb
mongoid-paranoia-1.0.0.beta2 spec/app/models/patient.rb
mongoid-versioning-1.0.0.beta2 spec/app/models/patient.rb
mongoid-4.0.0 spec/app/models/patient.rb
mongoid-4.0.0.rc2 spec/app/models/patient.rb
mongoid-4.0.0.rc1 spec/app/models/patient.rb
mongoid-4.0.0.beta2 spec/app/models/patient.rb
mongoid-paranoia-1.0.0.beta1 spec/app/models/patient.rb
mongoid-versioning-1.0.0.beta1 spec/app/models/patient.rb
mongoid-4.0.0.beta1 spec/app/models/patient.rb
mongoid-4.0.0.alpha2 spec/app/models/patient.rb
mongoid-4.0.0.alpha1 spec/app/models/patient.rb
mongoid-3.1.6 spec/app/models/patient.rb
sepastian-mongoid-rails4-4.0.1.alpha spec/app/models/patient.rb