Sha256: f8e33af5bce315b0c610abe0fa14e30ddcb76de1fdfd65ff1ddb5cdc5144edf7

Contents?: true

Size: 430 Bytes

Versions: 13

Compression:

Stored size: 430 Bytes

Contents

require "active_record/migration"

module PgHaMigrations
  module ActiveRecordHacks
    module DisableDdlTransaction
      def disable_ddl_transaction
        # Default to disabled unless someone has set it elsewhere
        defined?(@disable_ddl_transaction) ? @disable_ddl_transaction : true
      end
    end
  end
end

ActiveRecord::Migration.singleton_class.prepend(PgHaMigrations::ActiveRecordHacks::DisableDdlTransaction)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pg_ha_migrations-1.7.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.6.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.5.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.4.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.3.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.5 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.4 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.3 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.2 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.1 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.2.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.1.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb
pg_ha_migrations-1.0.0 lib/pg_ha_migrations/hacks/disable_ddl_transaction.rb