discourse/db/migrate/20120625145714_add_seen_notification_id_to_users.rb

11 lines
345 B
Ruby
Raw Normal View History

2013-02-05 13:16:51 -06:00
class AddSeenNotificationIdToUsers < ActiveRecord::Migration
def change
execute "TRUNCATE TABLE notifications"
2013-02-25 10:42:20 -06:00
2013-02-05 13:16:51 -06:00
add_column :users, :seen_notificaiton_id, :integer, default: 0, null: false
add_column :notifications, :forum_thread_id, :integer, null: true
2013-02-25 10:42:20 -06:00
add_column :notifications, :post_number, :integer, null: true
2013-02-05 13:16:51 -06:00
end
end