开发者

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

开发者 https://www.devze.com 2023-02-11 22:07 出处:网络
I can put my custom rake tasks in lib/tas开发者_Python百科ks/, but where are the built-in ones (i.e. db:migrate, db:seed, etc) stored?

I can put my custom rake tasks in lib/tas开发者_Python百科ks/, 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消