Re: rake db:migrate does nothing

Mark Coleman
Sun, 08 Jul 2007 16:39:36 -0000

Ambrose wrote:
> Yep - all the class names you wrote are as they appear in the
> migration file.
>
> All the classes match the file name and are unique.
>
> The current version in schema.rb:
>
> ActiveRecord::Schema.define(:version => 3) do
>
> As I say, if I now create a new project (which I am actually going to
> do as I am stuffed otherwise) then all the migrations will work. It
> just seems that after a while it stops applying them for no apparent
> reason in an existing project.
>
> Crazy stuff. And very frustrating.
>

You may have an environment variable called VERSION set at
''3''. This
would cause rake to migrate to that version but no further. Try manually
setting the version to 5, to see if that works...

--
Posted via http://www.ruby-forum.com/.