Sha256: 418754436845477e2b6a6c5aaa1632268d9f25630f3e1e79c405a3a7a5b6e186
Contents?: true
Size: 508 Bytes
Versions: 5
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true # Ensures that all navigation items have a valid target and http_method. class UpdateTargetSyntax < ActiveRecord::Migration[7.0] def change Katalyst::Navigation::Item.where(http_method: nil).update_all(http_method: "get") Katalyst::Navigation::Item.where(target: nil).update_all(target: "self") Katalyst::Navigation::Item.where(target: "_blank").update_all(target: "blank") Katalyst::Navigation::Item.where(target: "_top").update_all(target: "top") end end
Version data entries
5 entries across 5 versions & 1 rubygems