Orbit/app/models/page.rb

9 lines
161 B
Ruby

class Page < CouchFoo::Base
property :name, String
property :parent_name, String
property :content, String
validates_presence_of :name
end