Skip to content

Commit 644a218

Browse files
authored
Fix reset_ids test with Trilogy adapter (#93)
aafa5b2 was merged after 7da2abe, and did not handle Trilogy.
1 parent aafa5b2 commit 644a218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/database_cleaner/active_record/deletion.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def delete_table connection, table_name
2929

3030
def reset_id_sequence connection, table_name
3131
case connection.adapter_name
32-
when 'Mysql2'
32+
when 'Mysql2', 'Trilogy'
3333
connection.execute("ALTER TABLE #{table_name} AUTO_INCREMENT = 1;")
3434
when 'SQLite'
3535
connection.execute("delete from sqlite_sequence where name='#{table_name}';")

0 commit comments

Comments
 (0)