diff options
author | James Lopez <james@jameslopez.es> | 2016-06-30 18:22:56 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-30 18:22:56 +0300 |
commit | ef5713546bacc653f598eb692b728e35abdb8ab7 (patch) | |
tree | 740909fad3bf9d51b7192596490a3ff9e8e1a14c /db | |
parent | 67f59ebd50511bfba1ebdc73b6fd269f425ac6f0 (diff) |
few more changes from suggestions
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160620110927_fix_no_validatable_import_url.rb | 5 |
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.') |