discourse/db/migrate/20120625145714_add_seen_not...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
380 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
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