orbit-basic/app/models/snippet.rb

8 lines
131 B
Ruby
Raw Normal View History

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