class
rails latest stable - Superclass: Object

Class not available on this version

This class is only available on newer versions. The first available version (v7.2.3) is shown here.

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