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 [e6493eb9b76de73afef2706493efd090dfff4ecc] by Jacob Dunphy

Revision e6493eb9b76de73afef2706493efd090dfff4ecc, committed by Jacob Dunphy · January 29th, 2009 @ 04:34 AM

Sqlite adapter's copy_table incorrectly attempts to recreate a primary key id (:id => true in the create_table) if an :id column is present, even if it isn't a primary_key.

This fix sets :id => false if there is an :id column, but it's not the primary_key.

Signed-off-by: Michael Koziarski michael@koziarski.com [#1766 state:committed] http://github.com/rails/rails/co...

3 changed files

  • M activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
  • M activerecord/test/cases/copy_table_test_sqlite.rb
  • M activerecord/test/schema/schema.rb