mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #490 from mauro-oto/use-right-activerecord-base-module
Use the right ActiveRecord::Base module.
This commit is contained in:
commit
40e084e9a9
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ module DatabaseCleaner
|
||||||
def self.exclusion_condition(column_name)
|
def self.exclusion_condition(column_name)
|
||||||
result = " #{column_name} <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' "
|
result = " #{column_name} <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' "
|
||||||
if ::ActiveRecord::VERSION::MAJOR >= 5
|
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
|
end
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue