Skip to content

Avoid using bare connection. #646

@ioquatix

Description

@ioquatix

When running with:

config.active_record.permanent_connection_checkout = :disallowed

The following code appears to have issues:

if connection.supports_insert_conflict_target?

Better to use Model.with_connection do |connection|.

See socketry/community#8 for background.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions