2017-08-31 12:06:56 +08:00
|
|
|
class RemoveTopicResponseActions < ActiveRecord::Migration[4.2]
|
2013-02-13 17:38:43 +08:00
|
|
|
def up
|
2013-02-26 00:42:20 +08:00
|
|
|
# 2 notes:
|
2013-02-13 17:38:43 +08:00
|
|
|
# migrations should never use the object model to run sql, otherwise they are a time bomb
|
|
|
|
# this action type is not valid, we log a "response" action type anyway due to the watch implementation, its a relic.
|
|
|
|
#
|
|
|
|
# There is an open question about we should keep stuff in the user stream on the user page, even if a topic is unwatched
|
2013-02-26 00:42:20 +08:00
|
|
|
# Eg: I am not watching a topic I created, when somebody responds to the topic should I be notified on the user page?
|
2013-02-13 17:38:43 +08:00
|
|
|
execute 'delete from user_actions where action_type = 8'
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|