method
run_without_lock
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Migrator
run_without_lock()private
Used for running a specific migration.
# File activerecord/lib/active_record/migration.rb, line 1168
def run_without_lock
migration = migrations.detect { |m| m.version == @target_version }
raise UnknownMigrationVersionError.new(@target_version) if migration.nil?
execute_migration_in_transaction(migration, @direction)
record_environment
end Related methods
- Instance methods
- current
- current_migration
- current_version
- load_migrated
- migrate
- migrated
- migrations
- pending_migrations
- run
- runnable
- Class methods
- any_migrations?
- current_version
- down
- forward
- get_all_versions
- last_migration
- match_to_migration_filename?
- migrate
- migrations
- migrations_paths
- needs_migration?
- new
- open
- parse_migration_filename
- rollback
- run
- schema_migrations_table_name
- up
- Private methods
-
current_environment -
last_stored_environment -
move -
protected_environment? -
ddl_transaction -
down? -
execute_migration_in_transaction -
finish -
generate_migrator_advisory_lock_id -
invalid_target? -
migrate_without_lock -
ran? -
record_environment -
record_version_state_after_migrating -
run_without_lock -
start -
target -
up? -
use_advisory_lock? -
use_transaction? -
validate -
with_advisory_lock