# Question about extending schemas at run-time

**URL:** <https://www.ruby-forum.com/t/question-about-extending-schemas-at-run-time/57171>\
**Category:** Ruby\
**Created:** [April 7, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/question-about-extending-schemas-at-run-time/57171 "2006-04-07T17:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [April 7, 2006, 5:54pm UTC](https://www.ruby-forum.com/t/question-about-extending-schemas-at-run-time/57171/1 "2006-04-07T17:54:28Z")

</div>

I’m sure this has been brought up before but I probably am using the  
wrong keywords to search. I’d like to know if there is a way to use Ruby  
to create dynamic schemas. As an example, I’d like to create an  
administrative page that would allow administers to add or remove fields  
from that page - which results in a modification to the schema of the  
table in the database. Can this be done at runtime without having to  
restart Ruby?

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [April 7, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/question-about-extending-schemas-at-run-time/57171/2 "2006-04-07T19:58:40Z")

</div>

On 4/7/06, Eric [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m sure this has been brought up before but I probably am using the  
> wrong keywords to search. I’d like to know if there is a way to use Ruby  
> to create dynamic schemas. As an example, I’d like to create an  
> administrative page that would allow administers to add or remove fields  
> from that page - which results in a modification to the schema of the  
> table in the database. Can this be done at runtime without having to  
> restart Ruby?

Are you using Rails?

If so, you’re probably going to have better luck on the Rails mailing  
list ([http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)).

If not, much more information is required.

-austin

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [April 7, 2006, 8:28pm UTC](https://www.ruby-forum.com/t/question-about-extending-schemas-at-run-time/57171/3 "2006-04-07T20:28:20Z")

</div>

Austin Z. wrote:

> On 4/7/06, Eric [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > I’m sure this has been brought up before but I probably am using the  
> > wrong keywords to search. I’d like to know if there is a way to use Ruby  
> > to create dynamic schemas. As an example, I’d like to create an  
> > administrative page that would allow administers to add or remove fields  
> > from that page - which results in a modification to the schema of the  
> > table in the database. Can this be done at runtime without having to  
> > restart Ruby?
> 
> Are you using Rails?
> 
> If so, you’re probably going to have better luck on the Rails mailing  
> list ([http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)).
> 
> If not, much more information is required.
> 
> -austin

I’m going to use Rails - Perhaps I will post this question there.
