method
migrate
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::InvalidMigrationTimestampError::MigrationContext
migrate(target_version = nil, &block)public
Runs the migrations in the migrations_path.
If target_version is nil, migrate will run up.
If the current_version and target_version are both 0 then an empty array will be returned and no migrations will be run.
If the current_version in the schema is greater than the target_version, then down will be run.
If none of the conditions are met, up will be run with the target_version.