Commit ad8492137c988ebbe60d90b0f3ecdb42483b050a
1 parent
c48b131b
Exists in
master
and in
1 other branch
Added mongoid index creation task to example deploy.rb
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
config/deploy.example.rb
... | ... | @@ -56,4 +56,12 @@ namespace :errbit do |
56 | 56 | run("ln -nfs #{shared_configs}/config.yml #{release_configs}/config.yml") |
57 | 57 | run("ln -nfs #{shared_configs}/mongoid.yml #{release_configs}/mongoid.yml") |
58 | 58 | end |
59 | -end | |
60 | 59 | \ No newline at end of file |
60 | +end | |
61 | + | |
62 | +namespace :db do | |
63 | + desc "Create the indexes defined on your mongoid models" | |
64 | + task :create_mongoid_indexes do | |
65 | + run "bundle exec rake db:mongoid:create_indexes" | |
66 | + end | |
67 | +end | |
68 | + | ... | ... |