We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aafa5b2 commit 644a218Copy full SHA for 644a218
lib/database_cleaner/active_record/deletion.rb
@@ -29,7 +29,7 @@ def delete_table connection, table_name
29
30
def reset_id_sequence connection, table_name
31
case connection.adapter_name
32
- when 'Mysql2'
+ when 'Mysql2', 'Trilogy'
33
connection.execute("ALTER TABLE #{table_name} AUTO_INCREMENT = 1;")
34
when 'SQLite'
35
connection.execute("delete from sqlite_sequence where name='#{table_name}';")
0 commit comments