13 lines
442 B
Ruby
13 lines
442 B
Ruby
class TranslateLinksOnAssessmentQuestions < ActiveRecord::Migration[4.2]
|
|
tag :postdeploy
|
|
|
|
def self.up
|
|
AssessmentQuestion.where("question_data LIKE '%/files/%'").find_in_batches do |batch|
|
|
AssessmentQuestion.send_later_if_production_enqueue_args(:translate_links, { :priority => Delayed::LOWER_PRIORITY, :max_attempts => 1, :strand => 'mass_translate_links_migration' }, batch.map(&:id))
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
end
|
|
end
|