Permalink
Browse files

Updates the DataMapper truncation strategy to version 0.10.3

  • Loading branch information...
1 parent 968d14c commit 253247bd0813dc39c9c493a80119a6403f13ee2d @bmabey bmabey committed May 2, 2010
Showing with 4 additions and 1 deletion.
  1. +3 −0 History.txt
  2. +1 −1 lib/database_cleaner/data_mapper/truncation.rb
View
3 History.txt
@@ -1,5 +1,8 @@
0.5.x (In Git)
+ === Bugfixes
+ * Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
+
== 0.5.2
=== Bugfixes
View
2 lib/database_cleaner/data_mapper/truncation.rb
@@ -29,7 +29,7 @@ def disable_referential_integrity
execute("SET FOREIGN_KEY_CHECKS = 0;")
yield
ensure
- execute("SET FOREIGN_KEY_CHECKS = #{old};")
+ execute("SET FOREIGN_KEY_CHECKS = #{old.first};")
end
end

0 comments on commit 253247b

Please sign in to comment.