While it is too late to get any points from this, I thought I would put the best way for posterity :)
use change_table instead of create_table to add columns to a table that already exists, with all the benefits of TableDefinition:
self.up do change_table :comments do |t| t.references :author end end
This may seem trivial, but other gems, such as Devise, make heavy use of their own custom table definitions, and so you can still use them.
Jaime Bellmyer Oct. 15 '10 at 18:21 2010-10-15 18:21
source share