0.0
No commit activity in last 3 years
No release in over 3 years
PostgreSQL constraints in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.3.8

Runtime

>= 0.8
 Project Readme

straitjacket¶ ↑

Constraint creation for PostgreSQL.

Usage¶ ↑

See the specs for more.

@jacket = Straitjacket.new do

  on :users do
    name_gt_1.check "LENGTH(name) > 1"
    dog1.foreign_key :dog_id, :references => :dogs, :on => :id
    deprecated :foo 
    another.deprecated
  end

end.apply(db_connection)

Copyright © 2010 Kyle Maxwell. See LICENSE for details.