Skip to content

Commit

Permalink
Fix reset_ids test with Trilogy adapter (#93)
Browse files Browse the repository at this point in the history
aafa5b2 was merged after
7da2abe, and did not handle Trilogy.
  • Loading branch information
eugeneius committed Jun 5, 2024
1 parent aafa5b2 commit 644a218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/database_cleaner/active_record/deletion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}';")
Expand Down

0 comments on commit 644a218

Please sign in to comment.