Create missing auto increment attribute with rails migration
Posted
by DGM
on Stack Overflow
See other posts from Stack Overflow
or by DGM
Published on 2010-02-02T06:09:20Z
Indexed on
2010/04/26
12:53 UTC
Read the original article
Hit count: 384
I'm writing a migration to convert a non-rails app into the right format for rails - one of the tables for some reason does not have auto increment set on the id column. Is there a quick way to turn it on while in a migration, maybe with #change_column or something?
© Stack Overflow or respective owner