17 lines
448 B
Ruby
17 lines
448 B
Ruby
class PopulateSubmissionCommentDraftField < ActiveRecord::Migration
|
|
tag :postdeploy
|
|
|
|
def self.up
|
|
DataFixup::PopulateSubmissionCommentDraftField.send_later_if_production_enqueue_args(
|
|
:run,
|
|
priority: Delayed::LOW_PRIORITY,
|
|
strand: "populate_submission_comment_draft_field_fixup_#{Shard.current.database_server.id}",
|
|
max_attempts: 1
|
|
)
|
|
end
|
|
|
|
def self.down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|