Class: ActiveRecord::Migration::ExecutionStrategy

Inherits:
Object
  • Object
show all
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

DefaultStrategy

Instance Method Summary collapse

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