you have to make one migration
add_column type methods used there then migrate them
On Thu, Jan 7, 2010 at 10:02 AM, Saboor
<saboorahmedawan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
>
--
Regards:
Rajeev sharma
+919813270707
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.