nil.[] error when using Rails migrations
I just had a little trouble with Rails migrations. I was trying to add a column to a database table in the migration using:
The syntax seems ok at first glance but it resulted in the following error:
The type_to_sql should have given it away to me but I overlooked it at first and spun my wheels trying to figure out what was wrong. As it turned out :int is not right and I need to use :integer instead.
