Sha256: 3f5fdd20d6a86bc092b458db4e69f1b2b126434e409830d2b05549ebd14ebc58
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
class AddStatusToPandaCMSPages < ActiveRecord::Migration[7.1] def change unless column_exists?(:panda_cms_pages, :status) create_enum :panda_cms_page_status, ["active", "draft", "hidden", "archived"] add_column :panda_cms_pages, :status, :panda_cms_page_status, default: "active", null: false add_index :panda_cms_pages, :status end end end
Version data entries
3 entries across 3 versions & 1 rubygems