re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
If we use .env heroku neither sees DATABASE_URL nor config/database.yml and assumes we use postgre. There also is no need to load the rails env in the task.
There currently is no other way to inherit environment variables from parent apps on heroku