Alter sequence postgresql + rails

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