Sha256: 00b42227f1a010d8155f56fb2f8eadb98190908a1c6dc7ffee8667eb3f9ce567
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