Forum: Ruby on Rails Changing Table Schema and Models

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.
A111108ed3617edc35da89e84689c3c2?d=identicon&s=25 Arch Stanton (d6veteran)
on 2006-03-31 07:14
If I make a change to a database table, how do I recreate the model to
reflect the change?
6dab365a82517fb694650a57ee88e4a4?d=identicon&s=25 joey__ (Guest)
on 2006-03-31 08:46
Arch Stanton 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__
D5145c421cd25af6fa577c15219add90?d=identicon&s=25 unknown (Guest)
on 2006-03-31 08:48
(Received via mailing list)
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
D5145c421cd25af6fa577c15219add90?d=identicon&s=25 unknown (Guest)
on 2006-03-31 08:54
(Received via mailing list)
Oh, I misread. Just a table. I was referring to a the model as a
whole. Joey's right... you don't.
-N
A111108ed3617edc35da89e84689c3c2?d=identicon&s=25 Arch Stanton (d6veteran)
on 2006-03-31 08:56
Wow, that is slick.  I just tried it out.

I'm realizing quickly why this framework is getting so much attention.
25bbc96d9c53647354cb724e744b2222?d=identicon&s=25 Greg Freemyer (Guest)
on 2006-03-31 15:12
(Received via mailing list)
On 3/31/06, Arch Stanton <d6veteran@gmail.com> 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 Freemyer
The Norcross Group
Forensics for the 21st Century
This topic is locked and can not be replied to.