rails new <appname> -T --d=postgresql
-T
Skips test generator for those prefer using rspec
--d=postgresql
generates with Postgresql as database
if using rbenv or the like, run
you may use which ruby version you like
*note that rails 5 requires ruby version 2.2.2+
echo '2.4.0' > .ruby_version
Rails 5 uses secret so you can store your secret in a file and distribute it.
$ rails secrets:setup
# this command to edit your secrets
$ rails secrets:edit
- Add spec/*_helper.rb file