20191107181428_issue_2715_fix_broken_twitter_urls.rb 303 B

123456789
  1. require_dependency 'issue_2715_fix_broken_twitter_urls_job' # Rails autoloading expects `issue2715_fix...`
  2. class Issue2715FixBrokenTwitterUrls < ActiveRecord::Migration[5.2]
  3. def up
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Issue2715FixBrokenTwitterUrlsJob.perform_later
  6. end
  7. end