discourse/db/migrate/20210131221311_create_dismissed_topic_users_table.rb
Krzysztof Kotlarek f39e7fe81d
FEATURE: New way to dismiss new topics (#11927)
This is a try to simplify logic around dismiss new topics to have one solution to work in all places - dismiss all-new, dismiss new in a specific category or even in a specific tag.
2021-02-04 11:27:34 +11:00

13 lines
330 B
Ruby

# frozen_string_literal: true
class CreateDismissedTopicUsersTable < ActiveRecord::Migration[6.0]
def change
create_table :dismissed_topic_users do |t|
t.integer :user_id
t.integer :topic_id
t.datetime :created_at
end
add_index :dismissed_topic_users, %i(user_id topic_id), unique: true
end
end