mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 03:46:52 +08:00
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>
6 lines
176 B
Ruby
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
|