Sha256: fe02a3f21631a26bb6d8443384e687fc9a36cbd92eb34589306a7444327b82ca

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

class CreatePandaCMSBlocks < ActiveRecord::Migration[7.1]
  def change
    create_enum :panda_cms_block_kind, ["plain_text", "rich_text", "image", "video", "audio", "file", "code", "iframe", "quote", "list", "table", "form"]

    create_table :panda_cms_blocks, id: :uuid do |t|
      t.enum :kind, enum_type: :panda_cms_block_kind, default: "plain_text", null: false
      t.string :name
      t.string :key
      t.references :panda_cms_template, type: :uuid, foreign_key: {to_table: :panda_cms_templates}, null: false
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 db/migrate/20240303022441_create_panda_cms_blocks.rb
panda-cms-0.7.2 db/migrate/20240303022441_create_panda_cms_blocks.rb
panda-cms-0.7.0 db/migrate/20240303022441_create_panda_cms_blocks.rb