Class: ActiveRecord::Turntable::SeqShard
- Defined in:
- lib/active_record/turntable/seq_shard.rb
Instance Attribute Summary
Attributes inherited from Shard
Instance Method Summary collapse
-
#initialize(name = defined?(Rails) ? Rails.env : "development") ⇒ SeqShard
constructor
A new instance of SeqShard.
- #support_slave? ⇒ Boolean
Methods inherited from Shard
#connection, connection_classes, #connection_pool, #current_slave_shard, #use_slave?
Constructor Details
#initialize(name = defined?(Rails) ? Rails.env : "development") ⇒ SeqShard
Returns a new instance of SeqShard.
3 4 5 |
# File 'lib/active_record/turntable/seq_shard.rb', line 3 def initialize(name = defined?(Rails) ? Rails.env : "development") super(nil, name) end |
Instance Method Details
#support_slave? ⇒ Boolean
7 8 9 |
# File 'lib/active_record/turntable/seq_shard.rb', line 7 def support_slave? false end |