Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CHECK constraints and validations for your models

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
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.