Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter
- Defined in:
- lib/connection_adapters/abstract_adapter.rb
Direct Known Subclasses
Instance Method Summary collapse
- #foreign_key_constraints(table, name = nil) ⇒ Object
- #remove_foreign_key_constraint(table_name, constraint_name) ⇒ Object
-
#supports_fetch_foreign_keys? ⇒ Boolean
Does this adapter support the ability to fetch foreign key information? Backend specific, as the abstract adapter always returns
false
.
Instance Method Details
#foreign_key_constraints(table, name = nil) ⇒ Object
17 18 19 |
# File 'lib/connection_adapters/abstract_adapter.rb', line 17 def foreign_key_constraints(table, name = nil) raise NotImplementedError, "foreign_key_constraints is not implemented for #{self.class}" end |
#remove_foreign_key_constraint(table_name, constraint_name) ⇒ Object
21 22 23 |
# File 'lib/connection_adapters/abstract_adapter.rb', line 21 def remove_foreign_key_constraint(table_name, constraint_name) raise NotImplementedError, "rename_table is not implemented for #{self.class}" end |
#supports_fetch_foreign_keys? ⇒ Boolean
Does this adapter support the ability to fetch foreign key information?
Backend specific, as the abstract adapter always returns false
.
13 14 15 |
# File 'lib/connection_adapters/abstract_adapter.rb', line 13 def supports_fetch_foreign_keys? false end |