# Nuby : adding new fields to existing table

**URL:** <https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435>\
**Category:** Rails\
**Created:** [March 31, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435 "2008-03-31T16:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chinnakaruppan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c4cdca/32.png) [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Post date:** [March 31, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435/1 "2008-03-31T16:48:05Z")

</div>

Hi,  
I am starting rails with the clean slate(no legacy tables).I created  
tables and fields in sqlite using a gui.I am more comfortable this way.I  
did rake db:migrate. this updated the scheme.rb .After which I created  
Model .This basically has the same set of field as in scheme.rb for the  
table.  
But now when I want new field to the table in sqlite how should go about  
telling rails to update the scheme.rb and 001\_create\_table.rb file .Or  
should I do it manually.  
what is the normal way of doing this migration.Should I start from rails  
and it will create the table for me …  
THnks  
Chinna

---

<div class="post-metadata">

**Author:** ![chinnakaruppan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c4cdca/32.png) [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Post date:** [March 31, 2008, 8:43pm UTC](https://www.ruby-forum.com/t/nuby-adding-new-fields-to-existing-table/133435/2 "2008-03-31T20:43:47Z")

</div>

When you run “rake db:migrate”, your schema.rb will get updated, and it  
will run any migrations that haven’t been run.
