Sha256: abf6c33c0f6ee5a6bd8b82a07d7374165fd1848917a716ab9987ab8cb3b33e09
Contents?: true
Size: 628 Bytes
Versions: 25
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
25 entries across 25 versions & 1 rubygems