Module: Switchman::ActiveRecord::AbstractAdapter
- Defined in:
- lib/switchman/active_record/abstract_adapter.rb
Defined Under Namespace
Modules: ForeignKeyCheck
Instance Attribute Summary collapse
-
#last_query_at ⇒ Object
readonly
Returns the value of attribute last_query_at.
- #shard ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#last_query_at ⇒ Object (readonly)
Returns the value of attribute last_query_at.
14 15 16 |
# File 'lib/switchman/active_record/abstract_adapter.rb', line 14 def last_query_at @last_query_at end |
Instance Method Details
#initialize(*args) ⇒ Object
20 21 22 23 24 |
# File 'lib/switchman/active_record/abstract_adapter.rb', line 20 def initialize(*args) super @instrumenter = Switchman::ShardedInstrumenter.new(@instrumenter, self) @last_query_at = Time.now end |
#quote_local_table_name(name) ⇒ Object
26 27 28 |
# File 'lib/switchman/active_record/abstract_adapter.rb', line 26 def quote_local_table_name(name) quote_table_name(name) end |
#schema_migration ⇒ Object
31 32 33 |
# File 'lib/switchman/active_record/abstract_adapter.rb', line 31 def schema_migration ::ActiveRecord::SchemaMigration end |