You don''t change the migration you''ve already ran, you make a
new one.
For more on migrations, see here:
http://guides.rubyonrails.org/migrations.html
On Sun, Jan 17, 2010 at 7:13 PM, Vishwa Rao
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> 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.
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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.
>
>
>
>
--
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.