couchrest_model/spec/fixtures/more/service.rb

11 lines
226 B
Ruby
Raw Normal View History

class Service < CouchRest::Model::Base
# Set the default database to use
use_database DB
# Official Schema
property :name
property :price, Integer
validates_length_of :name, :minimum => 4, :maximum => 20
end