Skip to Content Skip to Search

class ActiveRecord::ConnectionNotDefined

Raised when a database connection pool is requested but has not been defined.

Inherits From

Attributes

[R] connection_name
[R] role
[R] shard

Public class methods

Source code GitHub
# File activerecord/lib/active_record/errors.rb, line 90
def initialize(message = nil, connection_name: nil, role: nil, shard: nil)
  super(message)
  @connection_name = connection_name
  @role = role
  @shard = shard
end

Definition files