# Changing Table Schema and Models

**URL:** <https://www.ruby-forum.com/t/changing-table-schema-and-models/93344>\
**Category:** Rails\
**Created:** [March 31, 2006, 7:14am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344 "2006-03-31T07:14:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 7:14am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/1 "2006-03-31T07:14:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 8:46am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/2 "2006-03-31T08:46:21Z")

</div>

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\_\_

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 8:48am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/3 "2006-03-31T08:48:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 8:56am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/4 "2006-03-31T08:56:13Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 8:54am UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/5 "2006-03-31T08:54:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![d6veteran](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/94ad74/32.png) [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Post date:** [March 31, 2006, 3:12pm UTC](https://www.ruby-forum.com/t/changing-table-schema-and-models/93344/6 "2006-03-31T15:12:17Z")

</div>

On 3/31/06, Arch S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
