Sha256: f9418fa9c2c18939020772e1d50c8924de25099c47e018740ed57a5d19b3ce69
Contents?: true
Size: 375 Bytes
Versions: 23
Compression:
Stored size: 375 Bytes
Contents
# encoding: utf-8 class Article include Mongoid::Document # jinda begin include Mongoid::Timestamps field :title, :type => String field :text, :type => String belongs_to :user, :class_name => "Jinda::User" has_many :comments validates :title, :text, :user_id, presence: true field :body, :type => String field :keywords, :type => String # jinda end end
Version data entries
23 entries across 23 versions & 1 rubygems