Skip to content

ronwsmith/rails3_pg_deferred_constraints

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails3 PG deferred constraints

Copyright: 2011 TMX Credit

Author: Potapov Sergey (aka Blake)

Intro

This is a Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug.

It tested with PosgreSQL 9.0.4 and Rails 3.1.0

Usage

I would recommend to use it only for tests and NEVER USE IN PRODUCTION

Add to your Gemfile:

group :test do
  gem 'rails3_pg_deferred_constraints'
end

Testing

  • cd test/dummy && bundle install
  • Open ./test/dummy/config/database.yml and modified db connections
  • Run rake test from the root directory of gem(not dummy application)

About

Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug.

Resources

License

Stars

Watchers

Forks

Packages

No packages published