diff --git a/lib/database_cleaner/active_record/deletion.rb b/lib/database_cleaner/active_record/deletion.rb index 6b6e41e8..8caad35a 100644 --- a/lib/database_cleaner/active_record/deletion.rb +++ b/lib/database_cleaner/active_record/deletion.rb @@ -29,7 +29,7 @@ def delete_table connection, table_name def reset_id_sequence connection, table_name case connection.adapter_name - when 'Mysql2' + when 'Mysql2', 'Trilogy' connection.execute("ALTER TABLE #{table_name} AUTO_INCREMENT = 1;") when 'SQLite' connection.execute("delete from sqlite_sequence where name='#{table_name}';")