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.1.0 spec/models/comment.rb
mongoid_spacial-0.0.1 spec/models/comment.rb