Sha256: 1a14e996b4ad6f3b094fb2221461f6bc950100bac36bb8bcaa59b015af9c1590

Contents?: true

Size: 418 Bytes

Versions: 4

Compression:

Stored size: 418 Bytes

Contents

# Disable Rails trigger enable/disable mechanism used for test cases, since
# DISABLE TRIGGER is not supported on distributed tables.

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module ReferentialIntegrity
        def supports_disable_referential_integrity?
          false
        end

        def disable_referential_integrity
          yield
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-multi-tenant-0.3.1 lib/activerecord-multi-tenant/referential_integrity.rb
activerecord-multi-tenant-0.3.0 lib/activerecord-multi-tenant/referential_integrity.rb
activerecord-multi-tenant-0.2.1 lib/activerecord-multi-tenant/referential_integrity.rb
activerecord-multi-tenant-0.2.0 lib/activerecord-multi-tenant/referential_integrity.rb