Sha256: 84af562abf784c646a62aa18c6b136d0062d9f4f647d5a8f4c94434500a56daa

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

class CreatePandaCMSPostVersions < ActiveRecord::Migration[7.1]
  def change
    create_table :panda_cms_post_versions, id: :uuid do |t|
      t.string :item_type, null: false
      t.string :item_id, null: false
      t.string :event, null: false
      t.string :whodunnit
      t.jsonb :object
      t.jsonb :object_changes
      t.datetime :created_at
    end
    add_index :panda_cms_post_versions, %i[item_type item_id]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 db/migrate/20240805123104_create_panda_cms_post_versions.rb
panda-cms-0.7.2 db/migrate/20240805123104_create_panda_cms_post_versions.rb
panda-cms-0.7.0 db/migrate/20240805123104_create_panda_cms_post_versions.rb