How to reflect database change to model

Hi, all

When database schema changed dynamically, like you add new column, or
create new table. The model will not
reflect on those changes. How does active_record handle this
situation? Which class or method I need to look into it?
Thank a lot!

On 18 Oct 2007, at 17:45, Nick wrote:

Hi, all

When database schema changed dynamically, like you add new column, or
create new table. The model will not
reflect on those changes. How does active_record handle this
situation? Which class or method I need to look into it?
Thank a lot!

reset_column_information

Fred

You are meant to user the migration feature of rake to create new
columns and tables. That keeps the schema and model tightly locked.

It’s killing me how cool it is.

–Colin