Sha256: 78e0d7a0dcf146c3868dd4ae60db9b14e98d2c37d018838676de4e4cdc8b21eb

Contents?: true

Size: 628 Bytes

Versions: 3

Compression:

Stored size: 628 Bytes

Contents

class CreatePandaCMSRedirects < ActiveRecord::Migration[7.1]
  def change
    create_table :panda_cms_redirects, id: :uuid do |t|
      t.string :origin_path, null: true
      t.string :destination_path, null: true
      t.references :origin_panda_cms_page, null: true, foreign_key: {to_table: :panda_cms_pages}, type: :uuid
      t.references :destination_panda_cms_page, null: true, foreign_key: {to_table: :panda_cms_pages}, type: :uuid
      t.integer :status_code, default: 301, null: false
      t.integer :visits, default: 0, null: false
      t.datetime :last_visited_at, null: true
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
panda-cms-0.7.3 db/migrate/20240317214827_create_panda_cms_redirects.rb
panda-cms-0.7.2 db/migrate/20240317214827_create_panda_cms_redirects.rb
panda-cms-0.7.0 db/migrate/20240317214827_create_panda_cms_redirects.rb