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