Given this code :
class House < CouchRest::Model::Base
use_database DB
property :somedumfield, :type => Integer
end
I can enter either Numeric or Text data; it saves it to the database and no errors are raised; I am using couch-model (which uses couchrest), how can I add a validation for data types on fields.
Thanks in advance