diff --git a/lib/database_cleaner/active_record/base.rb b/lib/database_cleaner/active_record/base.rb index 42a0b51..d8114b5 100644 --- a/lib/database_cleaner/active_record/base.rb +++ b/lib/database_cleaner/active_record/base.rb @@ -68,7 +68,7 @@ module DatabaseCleaner def self.exclusion_condition(column_name) result = " #{column_name} <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' " if ::ActiveRecord::VERSION::MAJOR >= 5 - result += " AND #{column_name} <> '#{ActiveRecord::Base.internal_metadata_table_name}' " + result += " AND #{column_name} <> '#{::ActiveRecord::Base.internal_metadata_table_name}' " end result end