Re: rake db:migrate does nothing

Matthew Rudy
Sun, 08 Jul 2007 21:51:43 -0000

try running your migrations manually.
eg.

ruby script/console

$ require RAILS_ROOT + "/db/migrate/004_create_resumes.rb"
$ CreateResumes.up

Ambrose wrote:
> Hi Mark
>
> I can absolutely confirm that I cannot get rake db:migrate to apply
> more than 3 migrations. It runs with no errors but will only apply the
> first 3 migrations on every new project I try. So something is clearly
> preventing more than 3 migrations.
>
> Where would I find this environment variable? I''ve looked in
> environment.rb and development.rb and database.yml
>
> For now I modified schema.rb from:
>
> ActiveRecord::Schema.define(:version => 3) do
>
> to
>
> ActiveRecord::Schema.define(:version => 5) do
>
> but still the migrations beyond 3 were not applied and the file gets
> modified back to:
>
> ActiveRecord::Schema.define(:version => 3) do
>
> after I rake db:migrate
>
> Thanks for your help - this is so frustrating and I''d love to just
get
> it sorted so I can get on.
>
> Cheers
>
> Ambrose
>
> On Jul 8, 9:39 am, Mark Coleman
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>


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