discourse/db/migrate/20250916082012_mark_timerable_id_non_nullable.rb
Linca eeeb7d302f
DEV: rename topic_id to timerable_id for BaseTimer (#34667)
To prepare for the introduction of `CategoryDefaultTimer`, which allows
posts created in certain categories to have a default TopicTimer, we
need to rename the `topic_id` column to `timerable_id`.

---------

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2025-09-17 13:19:17 +08:00

6 lines
176 B
Ruby

# frozen_string_literal: true
class MarkTimerableIdNonNullable < ActiveRecord::Migration[8.0]
def change
change_column_null :topic_timers, :timerable_id, false
end
end