We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e090e9 + 3084fa5 commit 0617758Copy full SHA for 0617758
1 file changed
lib/database_cleaner/active_record/deletion.rb
@@ -23,7 +23,7 @@ def delete_tables(connection, table_names)
23
end
24
25
def delete_table connection, table_name
26
- connection.execute("DELETE FROM #{connection.quote_table_name(table_name)}")
+ connection.execute("DELETE FROM #{connection.quote_table_name(table_name)} WHERE 1=1")
27
28
29
def tables_to_truncate(connection)
0 commit comments