Skip to content
CHECK constraints and validations for your models
Ruby
Find file
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.