$ bin/rails secrets:setup Adding config/secrets.yml.key to store the encryption key: 0123456789abcdef0123456789abcdef Save this in a password manager your team can access. If you lose the key, no one, including you, can access any encrypted secrets. create config/secrets.yml.key Ignoring config/secrets.yml.key so it won't end up in Git history: 1 development: append .gitignore Adding config/secret