This project is archived and is in readonly mode.
Changeset [e6493eb9b76de73afef2706493efd090dfff4ecc] 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...
Committed by Jacob Dunphy
- 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
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>