Sha256: f17e8a1aeb6ce3b48925795e11bfb4e368c2957b4bd0796fb7c5247d23d849d8

Contents?: true

Size: 333 Bytes

Versions: 22

Compression:

Stored size: 333 Bytes

Contents

class Comment
  include Mongoid::Document
  include Mongoid::Versioning
  include Mongoid::Timestamps
  field :title, :type => String
  field :text, :type => String
  key :text, :type => String

  referenced_in :movie
  referenced_in :rating
  validates :title, :presence => true
  validates :movie, :rating, :associated => true
end

Version data entries

22 entries across 22 versions & 4 rubygems

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