David Kimura PRO said about 3 years ago on Environment Specific Encrypted Credentials in Rails 5.2 :
  I'd say for a Rails 5.2 application, this is still probably along the path that you would have to go. I think that it was Rails 6 that added environment based encrypted credentials.