Forum: Ruby on Rails Newbie question on adding columns and references to existing table

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
tappind (Guest)
on 2009-03-11 20:08
(Received via mailing list)
I took a run at the blog tutorial and now I am working on my first
Ruby app. I have two models with the same relationship as the post /
comments example in the blog tutorial.

When I created the second model I forgot to add the 'reference' column
to link the two together.

I can't seem to find anywhere the correct way to fix this and in
general to add columns to an existing database table.

Thanks,

Dan
Bob M. (Guest)
on 2009-03-11 20:13
(Received via mailing list)
Migrations. Look into migrations. You can add, remove, change, etc.
columns and anything in the database through migrations.
This topic is locked and can not be replied to.