method
replica?
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations::HashConfig
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`.