Method: ActiveRecord::SchemaMigration#delete_all_versions

Defined in:
activerecord/lib/active_record/schema_migration.rb

#delete_all_versionsObject



36
37
38
39
40
41
42
43
# File 'activerecord/lib/active_record/schema_migration.rb', line 36

def delete_all_versions
  # Eagerly check in connection to avoid checking in/out many times in the called method.
  @pool.with_connection do
    versions.each do |version|
      delete_version(version)
    end
  end
end