method

replica?

rails latest stable - Class: ActiveRecord::DatabaseConfigurations::UrlConfig

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

replica?()
public

Determines whether a database configuration is for a replica / readonly connection. If the replica key is present in the config, replica? will return true.