Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CHECK constraints and validations for your models
Ruby
branch: master
Failed to load latest commit information.
lib
.gitignore README
README It's a gem!
Rakefile Initial
VERSION Version bump to 0.0.1

README

dm-checked-types
----------------
Property types that add CHECK constraints to your DB and validations to your model. Data integrity FTW.

Install:
  gem install dm-checked-types

Usage:
  require 'dm-checked-types'

  class Product
    include DataMapper::Resource

    property :name, String, :key => true
    property, :amount, CheckedInteger[:gt => 0]
    property, :price,  CheckedInteger[:gte => 0]
  end


Notes:
  Soz haven't extracted specs out of my main app yet
Something went wrong with that request. Please try again.