class

ActiveRecord::MigrationContext

v7.0.0 - Show latest stable - Superclass: Object

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. For most applications, SchemaMigration is sufficient. Multiple database applications need a SchemaMigration per primary database.

Attributes

[R]migrations_paths
[R]schema_migration

Files

  • activerecord/lib/active_record/migration.rb