Skip to content

Commit

Permalink
When migrating from scratch, update_repo_name is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Apr 25, 2018
1 parent eab09b4 commit 35c75c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SettingsChange < ActiveRecord::Base

def up
db = MiqDatabase.first
return unless db && my_region
return unless db.try(:update_repo_name) && my_region

say_with_time("Moving repo information from miq_databases to Settings") do
repos = db.update_repo_name.split
Expand Down

0 comments on commit 35c75c0

Please sign in to comment.