How mongoid create index for test and production environment?
I mean
rake db:mongoid:create_indexes => environment
how to set the environment?
I use mongoid 2.4.9 and rails 3.2.7.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As with other rake tasks for Rails, simply specify RAILS_ENV to rake on the command line,
e.g.,
You can tail your log files in another window to watch it happen.