method
rollback
rollback(migrations_path, steps=1)
public
Hide source
# File activerecord/lib/active_record/migration.rb, line 383 def rollback(migrations_path, steps=1) migrator = self.new(:down, migrations_path) start_index = migrator.migrations.index(migrator.current_migration) return unless start_index finish = migrator.migrations[start_index + steps] down(migrations_path, finish ? finish.version : 0) end