Sha256: 36f75970b8173bd9f948577ac57cb906f8e4b8c71e259ccfa28b738edf203062

Contents?: true

Size: 600 Bytes

Versions: 18

Compression:

Stored size: 600 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, *arguments, &block)
          connection.send(method, *arguments, &block)
        end
        ruby2_keywords(:method_missing)

        def respond_to_missing?(method, *)
          connection.respond_to?(method) || super
        end

        def connection
          migration.connection
        end
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/migration/default_strategy.rb
activerecord-7.1.5.1 lib/active_record/migration/default_strategy.rb
activerecord-7.1.5 lib/active_record/migration/default_strategy.rb
activerecord-7.1.4.2 lib/active_record/migration/default_strategy.rb
activerecord-7.1.4.1 lib/active_record/migration/default_strategy.rb
activerecord-7.1.4 lib/active_record/migration/default_strategy.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/migration/default_strategy.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/migration/default_strategy.rb
activerecord-7.1.3.4 lib/active_record/migration/default_strategy.rb
activerecord-7.1.3.2 lib/active_record/migration/default_strategy.rb
activerecord-7.1.3.1 lib/active_record/migration/default_strategy.rb
activerecord-7.1.3 lib/active_record/migration/default_strategy.rb
activerecord-7.1.2 lib/active_record/migration/default_strategy.rb
activerecord-7.1.1 lib/active_record/migration/default_strategy.rb
activerecord-7.1.0 lib/active_record/migration/default_strategy.rb
activerecord-7.1.0.rc2 lib/active_record/migration/default_strategy.rb
activerecord-7.1.0.rc1 lib/active_record/migration/default_strategy.rb
activerecord-7.1.0.beta1 lib/active_record/migration/default_strategy.rb