Sha256: 9c2eae9ff0fa42230669691286b7992136c05bc517066d57ebeb67f991a438ea

Contents?: true

Size: 199 Bytes

Versions: 24

Compression:

Stored size: 199 Bytes

Contents

class User
  include Mongoid::Document

  field :name

  references_one :account, :foreign_key => :creator_id
  references_many :posts, :foreign_key => :author_id
  references_many :descriptions
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.2.17 spec/models/user.rb
sig_mongoid_spacial-0.2.17 spec/models/user.rb
cb_mongoid_spacial-0.2.16 spec/models/user.rb
mongoid_geospatial-1.0.0 spec/models/user.rb
mongoid_geospatial-1.0.0rc1 spec/models/user.rb
mongoid_geospatial-1.0.0rc0 spec/models/user.rb
mongoid_spacial-0.2.16 spec/models/user.rb
mongoid_spacial-0.2.13 spec/models/user.rb
mongoid_spacial-0.2.12 spec/models/user.rb
mongoid_spacial-0.2.11 spec/models/user.rb
mongoid_spacial-0.2.10 spec/models/user.rb
mongoid_spacial-0.2.8 spec/models/user.rb
mongoid_spacial-0.2.7 spec/models/user.rb
mongoid_spacial-0.2.6 spec/models/user.rb
mongoid_spacial-0.2.5 spec/models/user.rb
mongoid_spacial-0.2.4 spec/models/user.rb
mongoid_spacial-0.2.3 spec/models/user.rb
mongoid_spacial-0.2.2 spec/models/user.rb
mongoid_spacial-0.2.0 spec/models/user.rb
mongoid_spacial-0.1.1 spec/models/user.rb