rails/rails — pull request #6186 by anydiem (2012-05-07 01:01:03+00:00)
Title: Set the primary key during #copy_table if necessary. Fixes [#2312]

Updated the pull request and retested against rails:master, as requested