d6f309ce22
Addresses: #412 Co-authored-by: Pranav Raj S <pranav@thoughtwoot.com>
10 lines
319 B
Ruby
10 lines
319 B
Ruby
if defined?(DatabaseCleaner)
|
|
# cleaning the database using database_cleaner
|
|
DatabaseCleaner.strategy = :truncation
|
|
DatabaseCleaner.clean
|
|
else
|
|
logger.warn 'add database_cleaner or update cypress/app_commands/clean.rb'
|
|
Post.delete_all if defined?(Post)
|
|
end
|
|
|
|
Rails.logger.info 'APPCLEANED' # used by log_fail.rb
|