Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [53a3eaa8603cf6e7a3c007f327fe5d3bb68de1ee] by Michael Schuerig

Revision 53a3eaa8603cf6e7a3c007f327fe5d3bb68de1ee, committed by Michael Schuerig · June 26th, 2009 @ 05:52 AM

Translate adapter errors that indicate a violated uniqueness constraint to ActiveRecord::RecordNotUnique exception derived from ActiveReecord::StatementInvalid.

Signed-off-by: Michael Koziarski michael@koziarski.com http://github.com/rails/rails/co...

6 changed files

  • M activerecord/lib/active_record/base.rb
  • M activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
  • M activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
  • M activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
  • M activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
  • M activerecord/test/cases/adapter_test.rb