How to use .railsrc file in rails?

.railsrc file ?

File should place in user home directory

Here you can add some default commands like

=>rails new [options]

This options values, you can add in this file.


-d postgresql --skip-test-unit

If you added “-d postgresql” in .railsrc after that, whenever creating new application the default database must be postgresql.

If you want to skip unit testing, you can add “–skip-test-unit”, it will skip always unit testing.