Sha256: 776938b3c5a0eba86a775edad4502b26933893a02d273a878bae04cf0b63c595
Contents?: true
Size: 530 Bytes
Versions: 11
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true class ChangeKatalystContentItemsShowHeadingColumn < ActiveRecord::Migration[7.0] # rubocop:disable Rails/SkipsModelValidations 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 # rubocop:enable Rails/SkipsModelValidations def down raise ActiveRecord::IrreversibleMigration end end
Version data entries
11 entries across 11 versions & 1 rubygems