```ruby
if Rails.env.production? && Rails.configuration.kubernetes_deployment
  establish_connection(
    url: ENV['DATABASE_URL'],
    database: 'pvb2_production'
  )
end
```

FIX - establish db connection
user
```ruby
if Rails.env.production? && Rails.configuration.kubernetes_deployment
  ActiveRecord::Base.establish_connection(
    url: ENV['DATABASE_URL'],
    database: 'pvb2_production'
  )
end
```
assistant