# Scaffold migration

**URL:** <https://www.ruby-forum.com/t/scaffold-migration/181208>\
**Category:** Rails\
**Created:** [January 7, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/scaffold-migration/181208 "2010-01-07T12:38:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saboor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@saboor](https://www.ruby-forum.com/u/saboor)\
**Post date:** [January 7, 2010, 12:38pm UTC](https://www.ruby-forum.com/t/scaffold-migration/181208/1 "2010-01-07T12:38:38Z")

</div>

hi,  
i have build a scaffold of [book name:string pages:int]  
it build successfully, then from rake task i did db:create:all and  
db:migrate , all was working fine  
now i want to change the defination of book form previous to [book  
name:string pages:int publisher:string]

as to solve the problem i recreated the scaffold and executed  
db:migrate, it successfully completed but at run time i got errors  
that publisher method is not defined.

so, now what i do update all the Models, Controllers & Views according  
to new defination of book

please help me,

thanks

---

<div class="post-metadata">

**Author:** ![saboor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/58956e/32.png) [@saboor](https://www.ruby-forum.com/u/saboor)\
**Post date:** [January 7, 2010, 2:32pm UTC](https://www.ruby-forum.com/t/scaffold-migration/181208/2 "2010-01-07T14:32:11Z")

</div>

you have to make one migration  
add\_column type methods used there then migrate them
