Rails Developers For Data Integrity: How to gracefully handle database key violations
Rails Devs for Database Integrity encourages the use of database foreign and unique keys, and it suggests ways to gracefully handle violation exceptions resulting from their use.
Comments
I’ve been meaning to write a Rails plugin that implements, for example, validates uniqueness of with a real constraint and handles the errors accordingly. Unfortunately that’d take A LOT of refactoring of Rails internals a this point. Maybe one day I’ll invest the time. :)
There were some of the redhill on rails plugins: http://github.com/harukizaemon There’s alot there.
Post a comment