Skip to content

Commit

Permalink
Merge pull request ManageIQ#20784 from bdunne/fix_deployment_status
Browse files Browse the repository at this point in the history
Look in the correct places for migrations to determine the deployment_status
  • Loading branch information
Fryguy authored Nov 6, 2020
2 parents 3ac94f0 + 9f1f527 commit c491c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/evm_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def self.encryption_key_valid?
end

def self.deployment_status
context = ActiveRecord::MigrationContext.new('db/migrate')
context = ActiveRecord::MigrationContext.new(Rails.application.config.paths["db/migrate"])
return "new_deployment" if context.current_version.zero?
return "new_replica" if MiqServer.my_server.nil?
return "upgrade" if context.needs_migration?
Expand Down

0 comments on commit c491c7c

Please sign in to comment.