Sha256: 6bc13a51689900aec65f97bc67c452a80406bceaa6ba73aebcef7f2f24972e52

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

class AddPandaCMSMenuItemTable < ActiveRecord::Migration[7.1]
  def change
    create_table :panda_cms_menu_items, id: :uuid do |t|
      t.string :text, null: false
      t.references :panda_cms_menu, null: false, foreign_key: true, type: :uuid
      t.references :panda_cms_page, null: true, foreign_key: true, type: :uuid
      t.string :external_url, null: true
      t.integer :sort_order, default: 1
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 db/migrate/20240303234724_add_panda_cms_menu_item_table.rb
panda-cms-0.7.2 db/migrate/20240303234724_add_panda_cms_menu_item_table.rb
panda-cms-0.7.0 db/migrate/20240303234724_add_panda_cms_menu_item_table.rb