From ad8492137c988ebbe60d90b0f3ecdb42483b050a Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 1 Sep 2011 11:20:18 +0800 Subject: [PATCH] Added mongoid index creation task to example deploy.rb --- config/deploy.example.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/deploy.example.rb b/config/deploy.example.rb index 2937594..24f6003 100644 --- a/config/deploy.example.rb +++ b/config/deploy.example.rb @@ -56,4 +56,12 @@ namespace :errbit do run("ln -nfs #{shared_configs}/config.yml #{release_configs}/config.yml") run("ln -nfs #{shared_configs}/mongoid.yml #{release_configs}/mongoid.yml") end -end \ No newline at end of file +end + +namespace :db do + desc "Create the indexes defined on your mongoid models" + task :create_mongoid_indexes do + run "bundle exec rake db:mongoid:create_indexes" + end +end + -- libgit2 0.21.2