Nathaniel S. H. Brown
2006-Feb-27 04:06 UTC
EdgeRails, rename_table doesn''t change the sequence name
With regards to Rails 1.1, this may be a new or old error, I wasn''t able to find it in Trac. Patch: http://dev.rubyonrails.org/ticket/3975 Basically, when I try to rename a table, the sequence names are not updated. connection.rename_table(''banannas'', ''banannas_pies'') Table Name: bananna_pies column | default value ---------------------------------- id | nextval(''public.banannas_id_seq''::text) -Nb ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel S. H. Brown http://nshb.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~