123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Migration::DefaultStrategy

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: ActiveRecord::Migration::ExecutionStrategy
Defined in: activerecord/lib/active_record/migration/default_strategy.rb

Overview

The default strategy for executing migrations. Delegates method calls to the connection adapter.

Class Method Summary

ExecutionStrategy - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from ActiveRecord::Migration::ExecutionStrategy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/default_strategy.rb', line 9

def method_missing(method, ...)
  connection.send(method, ...)
end

Instance Method Details

#connection (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/default_strategy.rb', line 17

def connection
  migration.connection
end

#respond_to_missing?(method, include_private = false) ⇒ Boolean (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/default_strategy.rb', line 13

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