Skip to content

Commit 2b5cb15

Browse files
committed
add debug statements
1 parent 4187544 commit 2b5cb15

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

spec/support/referential_integrity.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ def without_referential_integrity_postgres
2626

2727
def without_referential_integrity_mysql
2828
#db.disconnect
29+
puts("#{Time.now} SET FOREIGN_KEY_CHECKS = 0 for db #{db.opts[:database]}")
2930
db.run('SET FOREIGN_KEY_CHECKS = 0;')
3031
yield
3132
ensure
33+
puts("#{Time.now} SET FOREIGN_KEY_CHECKS = 1 for db #{db.opts[:database]}")
3234
db.run('SET FOREIGN_KEY_CHECKS = 1;')
3335
end
3436
end

spec/support/table_truncator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def truncate_tables
1717
db.run("TRUNCATE TABLE #{table} RESTART IDENTITY CASCADE;")
1818
end
1919
when :mysql
20+
puts("#{Time.now} Truncating tables")
2021
tables.each do |table|
2122
db.run("TRUNCATE TABLE #{table};")
2223
end

0 commit comments

Comments
 (0)