Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/greyblake/rails3_pg_deferred_constraints
Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug.
https://github.com/greyblake/rails3_pg_deferred_constraints
Last synced: about 1 month ago
JSON representation
Rails 3 engine which provides a hack to avoid RI_ConstraintTrigger Error bug.
- Host: GitHub
- URL: https://github.com/greyblake/rails3_pg_deferred_constraints
- Owner: greyblake
- License: mit
- Created: 2011-09-09T15:22:11.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-18T13:39:07.000Z (over 12 years ago)
- Last Synced: 2024-10-02T22:15:41.237Z (about 1 month ago)
- Language: Ruby
- Homepage: https://github.com/greyblake/rails3_pg_deferred_constraints
- Size: 136 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 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](http://kopongo.com/2008/7/25/postgres-ri_constrainttrigger-error).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)