Forum: Ruby on Rails rake db:migrate doesn't work anymore

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5e4cb206001822bacee90b8c4b0884d4?d=identicon&s=25 Kai (Guest)
on 2007-01-11 19:55
Hi!
Up to now, i had no problems with my migrations and rake (rake
db:migrate). Today, i got a project from a svn repository, but i can't
do "rake db:migrate":
"rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
Rakefile.rb)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in
`load_rakefile'
(See full trace by running task with --trace)"
I am in the right directory - what can be wrong?
Thanks!
C91098dc76d7ad473165ef24fe805312?d=identicon&s=25 Nanyang Zhan (xain)
on 2007-01-12 11:14
Kai wrote:

> (See full trace by running task with --trace)"
5c8d28d1333f8e44641e74c9f72c29c7?d=identicon&s=25 Snowman (Guest)
on 2007-01-12 11:40
You should have a file called "Rakefile" in the current directory where
you're calling rake (ie. the root directory of you rails project). Make
sure the file is present and accessible (ie. has correct permissions).
It should contain something like this:

--------------------------------------------

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/switchtower.rake, and they will automatically be
available to Rake.

require(File.join(File.dirname(__FILE__), 'config', 'boot'))

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'tasks/rails'
Aec50f31361352a2c27ca949f64d7213?d=identicon&s=25 Sheldon Hearn (Guest)
on 2007-01-19 16:31
(Received via mailing list)
On Jan 11, 8:55 pm, Kai <rails-mailing-l...@andreas-s.net> wrote:
> Up to now, i had no problems with my migrations and rake (rake
> db:migrate). Today, i got a project from a svn repository, but i can't
> do "rake db:migrate":
> "rake aborted!
> No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb,
> Rakefile.rb)

Not all projects use migrations, but it looks like nobody's committed
this project's Rakefile in this case. It's possible that the provider
of the source code doesn't see the file as essential, or has local mods
in it or just plain forgot to commit it.

Either grab one from another project or chat to the provider of the
source code.

Ciao,
Sheldon.
This topic is locked and can not be replied to.