Topic: Please explain this syntax

hi,

i am reading agile web development  with rails.

i got this syntax to modify a table

# ruby script/generate migration add_price_to_product price:decimal

and it works.

my question is how it know which table to modify in database?

regards,
saurabh

Re: Please explain this syntax

Saurabh,

syntax is "add_column_to_table".
add_price_to_product means add a coulmn "price" into table "product"

Re: Please explain this syntax

thanks

it helped

regards,
saurabh