I’m tired of typing $ rails new [app name] -d postgresql --skip-test-unit every time I start a new rails app. I’m using rails 3.2.
Is there any way to make using postresql and skipping test unit my default for new rails apps?
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.
Yes. Rails 3.2 makes setting those defaults easy by updating your
~/.railsrcfile.At the command line:
Now every new rails app will use postgresql and avoid testunit.
Any flag for the rails new generator can become a default by updating the ~/.railsrc file.