couchrest_model/spec/fixtures/models/service.rb
2011-06-09 01:05:22 +02:00

10 lines
226 B
Ruby

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