Sha256: 0959de266a88fd03da62d0683e9f78866ddca8f38556e3c88076ee88ef69e127
Contents?: true
Size: 558 Bytes
Versions: 39
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
39 entries across 39 versions & 1 rubygems