Skip to content
This repository

enables the deletion strategy also to JRuby (and not only the truncation strategy) #140

Merged
merged 1 commit into from over 1 year ago

3 participants

Heiko Seebach Don't Add Me To Your Organization a.k.a The Travis Bot Ben Mabey
Heiko Seebach

This fix makes also the deletion strategy available to JRuby and not only the truncation strategy (this was already fixed in 0.7.1)

Don't Add Me To Your Organization a.k.a The Travis Bot

This pull request passes (merged 4083474 into 9952a3f).

Ben Mabey bmabey merged commit de29527 into from August 13, 2012
Ben Mabey bmabey closed this August 13, 2012
Ben Mabey
Owner

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 13, 2012
apply fix from truncation.rb for PostgreSQL also to deletion.rb 4083474
This page is out of date. Refresh to see the latest.
2  lib/database_cleaner/active_record/deletion.rb
@@ -27,7 +27,7 @@ def delete_table(table_name)
27 27
       end
28 28
     end
29 29
 
30  
-    class PostgreSQLAdapter < AbstractAdapter
  30
+    class PostgreSQLAdapter < POSTGRE_ADAPTER_PARENT
31 31
       def delete_table(table_name)
32 32
         execute("DELETE FROM #{quote_table_name(table_name)};")
33 33
       end
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.