trabajo-afectivo/db/migrate/20191107181428_issue_2715_fix_broken_twitter_urls.rb

12 lines
380 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
require_dependency 'issue_2715_fix_broken_twitter_urls_job' # Rails autoloading expects `issue2715_fix...`
class Issue2715FixBrokenTwitterUrls < ActiveRecord::Migration[5.2]
def up
return if !Setting.exists?(name: 'system_init_done')
Issue2715FixBrokenTwitterUrlsJob.perform_later
end
end