2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2019-11-07 10:01:58 +00:00
|
|
|
require_dependency 'issue_2715_fix_broken_twitter_urls_job' # Rails autoloading expects `issue2715_fix...`
|
|
|
|
|
|
|
|
class Issue2715FixBrokenTwitterUrls < ActiveRecord::Migration[5.2]
|
|
|
|
def up
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2019-11-07 10:01:58 +00:00
|
|
|
|
|
|
|
Issue2715FixBrokenTwitterUrlsJob.perform_later
|
|
|
|
end
|
|
|
|
end
|