Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CHECK constraints and validations for your models
Ruby
branch: master

This branch is even with xaviershay:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
README
Rakefile
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.