Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Clear transient data initializer: don't try to predict how we got her…

…e, just check if we can run
  • Loading branch information...
commit ebec19585411d1b8459d5d022e720aeedf22c27f 1 parent c093474
@etdsoft etdsoft authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 config/initializers/clear_transient_data.rb
7 config/initializers/clear_transient_data.rb
@@ -2,8 +2,5 @@
# longer useful and can be disposed of. "Clearing old Logs and Feeds..."
-# Check that we are in normal operating mode, if we are in dradis:reset, skip.
-unless, ActiveRecord::Migrator.migrations_paths).pending_migrations.empty?
- Log.destroy_all
- Feed.destroy_all
+Log.destroy_all if Log.table_exists?
+Feed.destroy_all if Feed.table_exists?
Please sign in to comment.
Something went wrong with that request. Please try again.