Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rails 3 built-in rake tasks, where are they located?

I can put my custom rake tasks in lib/tasks/, but where are the built-in ones (i.e. db:migrate, db:seed, etc) stored?

I looked in: [INSTALLATION_DIRECTORY]/gems/rails-[VERSION]/lib/tasks but couldn't find that path. Maybe it matters that I'm using RVM?

I'd like to inspect their source for some inspiration.

like image 958
SooDesuNe Avatar asked Feb 19 '11 15:02

SooDesuNe


1 Answers

Have a look at /activerecord/lib/active_record/railties/databases.rake for the database related rake tasks. All the other rake tasks are also present in *.rake files, so you can run a find . -name "*.rake" in the gems directory to find others.

like image 73
Dogbert Avatar answered Sep 27 '22 23:09

Dogbert