Sha256: 27a70df7053e7fd8f7282beaaca57b961869a24a2b953aaf1cfdcc0bad4bbb1d

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

class CreatePandaCMSTemplates < ActiveRecord::Migration[7.1]
  def change
    create_table :panda_cms_templates, id: :uuid do |t|
      t.string :name
      t.string :file_path
      t.timestamps
    end

    add_reference :panda_cms_pages, :panda_cms_template, type: :uuid, foreign_key: {to_table: :panda_cms_templates}, null: false
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 db/migrate/20240303002805_create_panda_cms_templates.rb
panda-cms-0.7.2 db/migrate/20240303002805_create_panda_cms_templates.rb
panda-cms-0.7.0 db/migrate/20240303002805_create_panda_cms_templates.rb