Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

rake db:migrate

Hello, I get this error after i type in rake db:migrate.

rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

What is going on? Thank you! Much appreciated...

4 Answers

Lee Hughes
Lee Hughes
8,380 Points

Are you within your project folder when doing the rake?

I'd definitely recommend checking out The Console Foundations Deep Dive. It's very helpful stuff to know before starting any of the Ruby on Rails videos. Maybe even just go through the whole Web Developer Learning Adventure

Looks like it to me but I really am terrible at this- how can I check? Could this have anything to do with improper symlink setup? Thank you so much for responding.

Lee Hughes
Lee Hughes
8,380 Points

You can type in pwd in terminal to check what directory you are in. If you're not in the directory that you are working in you can get there via the command cd and work your way into it.

e.g cd projects

cd treebook

you will then be in the treebook directory and you can try the rake again.

If you're in the directory and the rake doesn't work, let me know.

Thank you so much to both of you- I managed to make it work thanks to your help - Will definitely check out the suggested deep dive too. :) X