RubyGems.org

This plugin currently implements constraints for PostgreSQL only. It should provide a structure for a more abstract implementation. Currently it implements foreign key constraints, unique constraints and check constraints. null and not null constraints would be easy to add but they may collide with preexisting Active Record code.

installgem install activerecord_constraints
Authors

Perry Smith

9,914 total downloads 4,936 for this version
Owners

3f38541776a2513a20ea2f1c2d522cb3

Gemfile
gem 'activerecord_constraints', '~> 0.1.1'
Versions
  1. 0.1.1 May 19, 2012 (26 KB)
  2. 0.1.0 May 19, 2012 (26 KB)