On 19 November 2012 16:36, Guilherme Rodrigues
<lopesgrml-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.