class
v8.1.1 - Show latest stable - Superclass: Object

Migration Context

MigrationContext sets the context in which a migration is run.

A migration context requires the path to the migrations is set in the migrations_paths parameter. Optionally a schema_migration class can be provided. Multiple database applications will instantiate a SchemaMigration object per database. From the Rake tasks, Rails will handle this for you.

Attributes

[R]internal_metadata
[R]migrations_paths
[R]schema_migration

Files

  • activerecord/lib/active_record/migration.rb