summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-30 17:22:56 +0200
committerJames Lopez <james@jameslopez.es>2016-06-30 17:22:56 +0200
commitef5713546bacc653f598eb692b728e35abdb8ab7 (patch)
tree740909fad3bf9d51b7192596490a3ff9e8e1a14c /db
parent67f59ebd50511bfba1ebdc73b6fd269f425ac6f0 (diff)
downloadgitlab-ce-ef5713546bacc653f598eb692b728e35abdb8ab7.tar.gz
few more changes from suggestions
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160620110927_fix_no_validatable_import_url.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/db/migrate/20160620110927_fix_no_validatable_import_url.rb b/db/migrate/20160620110927_fix_no_validatable_import_url.rb
index e111691ea3c..3e3837ab7e9 100644
--- a/db/migrate/20160620110927_fix_no_validatable_import_url.rb
+++ b/db/migrate/20160620110927_fix_no_validatable_import_url.rb
@@ -53,7 +53,10 @@ class FixNoValidatableImportUrl < ActiveRecord::Migration
end
def up
- return unless defined?(Addressable::URI::InvalidURIError)
+ unless defined?(Addressable::URI::InvalidURIError)
+ say('Skipping cleaning up invalid import URLs as class from Addressable iss missing')
+ return
+ end
say('Cleaning up invalid import URLs... This may take a few minutes if we have a large number of imported projects.')