Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 13, 2014
1 parent 0ce0bec commit 2aa82a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/derailed_benchmarks/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

DERAILED_APP = Rails.application

if APP.respond_to?(:initialized?)
APP.initialize! unless APP.initialized?
if DERAILED_APP.respond_to?(:initialized?)
DERAILED_APP.initialize! unless DERAILED_APP.initialized?
else
APP.initialize! unless APP.instance_variable_get(:@initialized)
DERAILED_APP.initialize! unless DERAILED_APP.instance_variable_get(:@initialized)
end

if defined? ActiveRecord
ActiveRecord::Migrator.migrations_paths = APP.paths['db/migrate'].to_a
ActiveRecord::Migrator.migrations_paths = DERAILED_APP.paths['db/migrate'].to_a
ActiveRecord::Migration.verbose = true
ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, nil)
end
Expand Down

0 comments on commit 2aa82a6

Please sign in to comment.