2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class AddSeenNotificationIdToUsers < ActiveRecord::Migration[4.2]
|
2013-02-05 14:16:51 -05:00
|
|
|
def change
|
|
|
|
execute "TRUNCATE TABLE notifications"
|
2013-02-25 11:42:20 -05:00
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
add_column :users, :seen_notificaiton_id, :integer, default: 0, null: false
|
|
|
|
add_column :notifications, :forum_thread_id, :integer, null: true
|
2013-02-25 11:42:20 -05:00
|
|
|
add_column :notifications, :post_number, :integer, null: true
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
end
|