diff --git a/db/migrate/20160913195129_move_repo_data_from_database_to_settings.rb b/db/migrate/20160913195129_move_repo_data_from_database_to_settings.rb index 12a83b676..412c76010 100644 --- a/db/migrate/20160913195129_move_repo_data_from_database_to_settings.rb +++ b/db/migrate/20160913195129_move_repo_data_from_database_to_settings.rb @@ -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