rails/rails — pull request #5267 by kennyj (2012-03-04 03:34:02+00:00)
Title: Fix GH #4674. Reset column information and sequence name when setting table_name.

In now implementation, when calling table_name=, we reset @quoted_table_name, @arel_table, but we don't reset column information and sequence name.

Please see #4674 .

BTW, the original issue was happen on 3-2-stable.