Problem running rake db:migrate

I’m having a great deal of trouble getting rake to run migrations on our
staging server. Everything works fine on my dev box, but trying to run
the
following on staging results in errors.


rake db:migrate
(in /var/www/apps/acadtech2/app)
rake aborted!
Don’t know how to build task ‘db:migrate’

(See full trace by running task with --trace)

The box has Ruby 1.8.4 and Rails 1.1.2.

Any hints or suggestions appreciated.

Thanks,
Chris

Hello Chris,

(See full trace by running task with --trace)

The box has Ruby 1.8.4 and Rails 1.1.2.

Any hints or suggestions appreciated.

I haven’t the solution (are you sure you runned the command
in RAILS_ROOT ?) but first, be sure you’ve got the
right list of tasks by checking with :

$ rake --tasks

РJean-Fran̤ois.

Hi Jean-François,

I know for sure that I’m in the RAILS_ROOT directory, but when I run the
$
rake --tasks command, I get an empty list. Any idea what could cause
this?

Thanks,
Chris

Solved the problem - somehow my Rakefile had gotten cleaned out. I
replaced
it with one from another app and it is working fine now. Thanks for the
help.

-Chris

Solved the problem - somehow my Rakefile had gotten cleaned out. I
replaced
it with one from another app and it is working fine now. Thanks for the
help.

-Chris

Chris :

I know for sure that I’m in the RAILS_ROOT directory,
but when I run the $ rake --tasks command, I get an
empty list. Any idea what could cause this?

No idea, but I would check all I can check.

  • Rake,
  • Gems Rails. Are they many versions of Rails installed ?
  • Rails code in vendor/rails if the application is frozen,
  • create a dumb Rails app, and run inside rake --tasks

that’s the first suggestions I’ve got in mind.

HTH,

РJean-Fran̤ois.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs