123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::Migration::ExecutionStrategy

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
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.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(migration) ⇒ ExecutionStrategy

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/execution_strategy.rb', line 11

def initialize(migration)
  @migration = migration
end

Instance Attribute Details

#migration (readonly, private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/execution_strategy.rb', line 16

attr_reader :migration