mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 20:26:35 +08:00
852860de66
- All unsubscribes go to the exact same page - You may unsubscribe from watching a category on that page - You no longer need to be logged in to unsubscribe from a topic - Simplified footer on emails
20 lines
646 B
Ruby
20 lines
646 B
Ruby
class RenameDigestUnsbscribeKeys < ActiveRecord::Migration
|
|
def up
|
|
rename_table :digest_unsubscribe_keys, :unsubscribe_keys
|
|
|
|
add_column :unsubscribe_keys, :unsubscribe_key_type, :string
|
|
add_column :unsubscribe_keys, :topic_id, :int
|
|
add_column :unsubscribe_keys, :post_id, :int
|
|
|
|
execute "UPDATE unsubscribe_keys SET unsubscribe_key_type = 'digest' WHERE unsubscribe_key_type IS NULL"
|
|
end
|
|
|
|
def down
|
|
remove_column :unsubscribe_keys, :unsubscribe_key_type
|
|
remove_column :unsubscribe_keys, :topic_id
|
|
remove_column :unsubscribe_keys, :post_id
|
|
|
|
rename_table :unsubscribe_keys, :digest_unsubscribe_keys
|
|
end
|
|
end
|