class ChangeHandlerToMediumTextOnDelayedJobs < ActiveRecord::Migration
  def change
    change_column :delayed_jobs, :handler, :mediumtext
  end
end

class ChangeHandlerToMediumTextOnDelayedJobs < ActiveRecord::Migration
  def change
    if ActiveRecord::Base.connection.adapter_name == 'MySQL'
      change_column :delayed_jobs, :handler, :mediumtext
    end
  end
end

Use mediumtext in migration only if using mysql
Use mediumtext in migration only if using mysql
