Sha256: 574c91d2756103a3360e61024427238f2f434c8917fcd8551ad42907576c17e1

Contents?: true

Size: 569 Bytes

Versions: 20

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  class Migration
    # The default strategy for executing migrations. Delegates method calls
    # to the connection adapter.
    class DefaultStrategy < ExecutionStrategy # :nodoc:
      private
        def method_missing(method, ...)
          connection.send(method, ...)
        end

        def respond_to_missing?(method, include_private = false)
          connection.respond_to?(method, include_private) || super
        end

        def connection
          migration.connection
        end
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
activerecord-8.0.0 lib/active_record/migration/default_strategy.rb
activerecord-7.2.2 lib/active_record/migration/default_strategy.rb
activerecord-8.0.0.rc2 lib/active_record/migration/default_strategy.rb
activerecord-7.2.1.2 lib/active_record/migration/default_strategy.rb
activerecord-8.0.0.rc1 lib/active_record/migration/default_strategy.rb
activerecord-7.2.1.1 lib/active_record/migration/default_strategy.rb
activerecord-8.0.0.beta1 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha2 lib/active_record/migration/default_strategy.rb
omg-activerecord-8.0.0.alpha1 lib/active_record/migration/default_strategy.rb
activerecord-7.2.1 lib/active_record/migration/default_strategy.rb
activerecord-7.2.0 lib/active_record/migration/default_strategy.rb
activerecord-7.2.0.rc1 lib/active_record/migration/default_strategy.rb
activerecord-7.2.0.beta3 lib/active_record/migration/default_strategy.rb
activerecord-7.2.0.beta2 lib/active_record/migration/default_strategy.rb
activerecord-7.2.0.beta1 lib/active_record/migration/default_strategy.rb