Exception: ActiveRecord::ConnectionNotDefined
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
ActiveRecord::ConnectionNotEstablished
|
Defined in: | activerecord/lib/active_record/errors.rb |
Overview
Raised when a database connection pool is requested but has not been defined.
Class Method Summary
ConnectionNotEstablished
- Inherited
AdapterError
- Inherited
Instance Attribute Summary
Instance Method Summary
ConnectionNotEstablished
- Inherited
Constructor Details
.new(message = nil, connection_name: nil, role: nil, shard: nil) ⇒ ConnectionNotDefined
# File 'activerecord/lib/active_record/errors.rb', line 90
def initialize( = nil, connection_name: nil, role: nil, shard: nil) super( ) @connection_name = connection_name @role = role @shard = shard end
Instance Attribute Details
#connection_name (readonly)
[ GitHub ]#role (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 97
attr_reader :connection_name, :role, :shard
#shard (readonly)
[ GitHub ]# File 'activerecord/lib/active_record/errors.rb', line 97
attr_reader :connection_name, :role, :shard