Skip to content
Postgres constraints in ruby
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION

README.rdoc

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

Copyright © 2010 Kyle Maxwell. See LICENSE for details.

Something went wrong with that request. Please try again.