to contain the potential damage here, how about

```ruby
if name.start_with?("HEROKU_POSTGRESQL")
  name.chomp!("_URL")
end
```