mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Use the right ActiveRecord::Base module.
This commit is contained in:
parent
9755bc55dc
commit
b56783f267
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue