Changing Table Schema and Models

If I make a change to a database table, how do I recreate the model to
reflect the change?

Arch S. wrote:

If I make a change to a database table, how do I recreate the model to
reflect the change?

You don’t need to.

Joey__

As far as I know you have to do it manually. There are still some
tedious things you have to do. I’ve been working on that pretty much
all night.
-N

Wow, that is slick. I just tried it out.

I’m realizing quickly why this framework is getting so much attention.

Oh, I misread. Just a table. I was referring to a the model as a
whole. Joey’s right… you don’t.
-N

On 3/31/06, Arch S. [email protected] wrote:

Wow, that is slick. I just tried it out.

I’m realizing quickly why this framework is getting so much attention.

Once you set your app for production mode, the model is only
created/modified when you start your app, so as far as I know you have
to stop your webserver and restart it.

Greg

Greg F.
The Norcross Group
Forensics for the 21st Century

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs