diff --git a/app/lib/migration_helpers/plano_views.rb b/app/lib/migration_helpers/plano_views.rb index 0a59a8186..0cfe7b160 100644 --- a/app/lib/migration_helpers/plano_views.rb +++ b/app/lib/migration_helpers/plano_views.rb @@ -621,7 +621,7 @@ def self.test_registration_sync_matches_type SQL res = ActiveRecord::Base.connection.execute(query) - res.first["relkind"] + res.first && res.first["relkind"] end def self.drop_views