On 19 November 2012 16:36, Guilherme Rodrigues <[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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to