Sha256: 0cadeb12252e9bfded42c61d102cda1608e0837b851cb41e862791eaae928f01

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

class Location < CouchRest::ExtendedDocument  
  # Include the validation module to get access to the validation methods
  include CouchRest::Validation
  # set the auto_validation before defining the properties
  auto_validate!
  
  # Set the default database to use
  use_database TEST_SERVER.default_database
  
  # Official Schema
  property :city, :default => "Ciudad de Buenos Aires"
  property :state, :default => "Buenos Aires"
  property :zip
  
  timestamps!
  
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
peterpunk-couchrest-0.23.1 spec/fixtures/more/location.rb