mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:59:22 -06:00
12 lines
380 B
Ruby
12 lines
380 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddSeenNotificationIdToUsers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
execute "TRUNCATE TABLE notifications"
|
|
|
|
add_column :users, :seen_notificaiton_id, :integer, default: 0, null: false
|
|
add_column :notifications, :forum_thread_id, :integer, null: true
|
|
add_column :notifications, :post_number, :integer, null: true
|
|
end
|
|
end
|