From 8c1a0eba33b7091f5e6aa4e74c9728ff5f58c797 Mon Sep 17 00:00:00 2001 From: Yuki Kawamoto Date: Mon, 8 May 2017 09:14:05 +0900 Subject: [PATCH] Fix missing method in deletion --- lib/database_cleaner/active_record/deletion.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/database_cleaner/active_record/deletion.rb b/lib/database_cleaner/active_record/deletion.rb index 6867d2c..c10b3bd 100644 --- a/lib/database_cleaner/active_record/deletion.rb +++ b/lib/database_cleaner/active_record/deletion.rb @@ -72,7 +72,7 @@ module DatabaseCleaner::ActiveRecord INFORMATION_SCHEMA.TABLES WHERE table_schema = '#{db_name}' - AND table_name <> '#{migration_table_name}'; + AND table_name <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}'; SQL end end