Sha256: b5a4348f98a53307a6553056e385ed2e13c94cb6d70d101fd9cc3bb6a8b6752a
Contents?: true
Size: 389 Bytes
Versions: 13
Compression:
Stored size: 389 Bytes
Contents
# encoding: utf-8 class Comment include Mongoid::Document # jinda begin include Mongoid::Timestamps field :body, :type => String belongs_to :article, :class_name => "Article" belongs_to :user, :class_name => "User" belongs_to :job, :class_name => "Job" belongs_to :commentable, polymorphic: true index({ commentable_id: 1, commentable_type: 1}) # jinda end end
Version data entries
13 entries across 13 versions & 1 rubygems