2024-08-29 16:16:07 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-08-29 16:15:07 +02:00
|
|
|
class CreatePathRewrites < ActiveRecord::Migration[7.0]
|
|
|
|
def change
|
|
|
|
create_table :path_rewrites do |t|
|
|
|
|
t.string :from, null: false
|
|
|
|
t.string :to, null: false
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
add_index :path_rewrites, :from, unique: true
|
|
|
|
end
|
|
|
|
end
|