# Rake db:migrate:up to change scaffold?

**URL:** <https://www.ruby-forum.com/t/rake-dbup-to-change-scaffold/181745>\
**Category:** Rails\
**Created:** [January 17, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/rake-dbup-to-change-scaffold/181745 "2010-01-17T17:13:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [January 17, 2010, 5:13pm UTC](https://www.ruby-forum.com/t/rake-dbup-to-change-scaffold/181745/1 "2010-01-17T17:13:22Z")

</div>

I created a scaffold for a table ‘mytable’ in mysql with two columns and  
then ran rake db:migrate. This worked. Then I wanted to add a column to  
the existing ‘mytable’ in the database. So I go to migrate directory and  
modify the create\_mytable.rb file to add a new column. Then I run rake  
db:migrate:up . Gives me error: rake aborted VERSION is required.

I want to know how to change scaffold and change database during my  
development. I am thinking of changing datatypes or coulumns in the  
table.

Am I using wrong approach, please let me know.  
Also references to advanced tutorials on scaffolding would help me.

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [January 17, 2010, 5:27pm UTC](https://www.ruby-forum.com/t/rake-dbup-to-change-scaffold/181745/2 "2010-01-17T17:27:54Z")

</div>

You don’t change the migration you’ve already ran, you make a new one.

For more on migrations, see here:

> **[Active Record Migrations — Ruby on Rails Guides](https://edgeguides.rubyonrails.org/active_record_migrations.html)**
>
> Active Record MigrationsMigrations are a feature of Active Record that allows you to evolve your database schema over time. Rather than write schema modifications in pure SQL, migrations allow you to use a Ruby DSL to describe changes to your...

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [January 19, 2010, 2:05am UTC](https://www.ruby-forum.com/t/rake-dbup-to-change-scaffold/181745/3 "2010-01-19T02:05:40Z")

</div>

Steve K. wrote:

> You don’t change the migration you’ve already ran, you make a new one.
> 
> For more on migrations, see here:  
> [Active Record Migrations — Ruby on Rails Guides](http://guides.rubyonrails.org/migrations.html)

Thank you. I am reading up on it.
