discourse/db/migrate/20120625145714_add_seen_notification_id_to_users.rb

11 lines
345 B
Ruby
Raw Normal View History

2013-02-05 14:16:51 -05:00
class AddSeenNotificationIdToUsers < ActiveRecord::Migration
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