Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 137 Bytes
class Post
include Mongoid::Document
field :name, type: String
field :description, type: String
validates_presence_of :name
end