Sha256: bd0a7222744b06babfdc5a5377b12145937abd9b29b6da795079697dde062dcd
Contents?: true
Size: 435 Bytes
Versions: 13
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true class ChangeKatalystContentItemsShowHeadingColumn < ActiveRecord::Migration[7.0] def up add_column :katalyst_content_items, :heading_style, :integer, null: false, default: 0 Katalyst::Content::Item.where(show_heading: true).update_all(heading_style: 1) remove_column :katalyst_content_items, :show_heading, :boolean end def down raise ActiveRecord::IrreversibleMigration end end
Version data entries
13 entries across 13 versions & 1 rubygems