Class: ActiveRecord::Migration::ExecutionStrategy
- Defined in:
- activerecord/lib/active_record/migration/execution_strategy.rb
Overview
ExecutionStrategy is used by the migration to respond to any method calls that the migration class does not implement directly. This is the base strategy. All strategies should inherit from this class.
The ExecutionStrategy receives the current migration
when initialized.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(migration) ⇒ ExecutionStrategy
constructor
A new instance of ExecutionStrategy.
Constructor Details
#initialize(migration) ⇒ ExecutionStrategy
Returns a new instance of ExecutionStrategy.
11 12 13 |
# File 'activerecord/lib/active_record/migration/execution_strategy.rb', line 11 def initialize(migration) @migration = migration end |