mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
10 lines
345 B
Ruby
10 lines
345 B
Ruby
class AddSeenNotificationIdToUsers < ActiveRecord::Migration
|
|
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
|