This project is archived and is in readonly mode.
[PATCH] Sqlite adapter's copy_table should not set :id => true if :id is not a primary key
-
jdunphy
Somebody told me that patch files were preferred on single commit type patches. Here's the patch
-
Repository
- State changed from new to committed
(from [e6493eb9b76de73afef2706493efd090dfff4ecc]) 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 [PATCH] Sqlite adapter's copy_table should not set :id => true if :id is not ... state:committed] http://github.com/rails/rails/co...
