Alter sequence postgresql + rails

Hello. I would like to rename any sequence in my database, because I
rename
table, but yours sequence I don’t know rename. Have rename with one
migration?
For example: rename_sequence :conta_id_seq, :account_id_seq??
Thank you.

On 19 November 2012 16:36, Guilherme R. [email protected]
wrote:

Hello. I would like to rename any sequence in my database, because I rename
table, but yours sequence I don’t know rename. Have rename with one
migration?
For example: rename_sequence :conta_id_seq, :account_id_seq??

If you are trying to rename a column then you want rename_column, so
something like
rename_column :the_table_name, :conta_id_seq, :account_id_seq
It is a bit unusual to have column names like that, account_id would
be more usual if that is holding the id of something in the accounts
table.

Colin