Files
ubicloud/migrate/20231102_add_details_to_page.rb
Enes Cakir 4c812986f8 Add migration file to add metadata to the page model
The page lacked structured resource information. I evaluated various
options: extracting UBIDs from the summary using regex, adding a
'resource_id' column, or introducing a JSONB column.

By adding a 'details' column, we can associate multiple UBIDs with a
single page. Additionally, we can enrich the page details to facilitate
easier future investigations.
2023-11-02 16:40:48 +03:00

10 lines
169 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:page) do
add_column :details, :jsonb, null: false, default: "{}"
end
end
end