Hi, I'm
Bruno Lara Tavares


July 01, 2011 - Bruno Lara Tavares [ruby, rails]

Rails migration and column names

After creating a migration on Rails, I discovered you can’t set a column name as type.

It will break.

To fix it, pick the number on the begining of the migration file name and run:

rake db:migrate:down VERSION={the number you found}

Related Posts

  • 21 May 2019 » Cluster em casa – Sistema operacional
  • 12 May 2019 » Cluster em casa - Hardware
  • 13 Jun 2017 » Updates sobre o ecossistema de Rust (Maio/Junho 2017)

Home - Bruno Lara Tavares © 2023 - The postings on this site are my own and don't necessarily represent my employer’s positions, strategies or opinions.