instance method
shard_swapping_prohibited?
Ruby on Rails 7.2.3
Since v7.0.10Signature
shard_swapping_prohibited?()
Determine whether or not shard swapping is currently prohibited
Source
# File activerecord/lib/active_record/connection_handling.rb, line 208
def shard_swapping_prohibited?
ActiveSupport::IsolatedExecutionState[:active_record_prohibit_shard_swapping]
end
Defined in activerecord/lib/active_record/connection_handling.rb line 208
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionHandling