Migration for beginner


#1

I haven’t used migration for quite a while and I forgot how to do it.
I need to add a column to a certain table.
I want to use: ruby script/generate migration inactivated_at
but if I don’t write the name of the table somewhere how will it know?


#2

script/generate migration add_inactivated_at_to_certain_table
inactivated_at:date

On Fri, Jan 2, 2009 at 3:04 PM, Anita A. <


#3

Here are the oficial guide about migrations:
http://guides.rails.info/migrations.html

All you need to know.