Add notifications for statuses deleted by moderators (#17204)
This commit is contained in:
parent
d5c9feb7b7
commit
14f436c457
59 changed files with 1220 additions and 598 deletions
21
db/migrate/20220115125341_fix_account_warning_actions.rb
Normal file
21
db/migrate/20220115125341_fix_account_warning_actions.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class FixAccountWarningActions < ActiveRecord::Migration[6.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def up
|
||||
safety_assured do
|
||||
execute 'UPDATE account_warnings SET action = 1000 WHERE action = 1'
|
||||
execute 'UPDATE account_warnings SET action = 2000 WHERE action = 2'
|
||||
execute 'UPDATE account_warnings SET action = 3000 WHERE action = 3'
|
||||
execute 'UPDATE account_warnings SET action = 4000 WHERE action = 4'
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
safety_assured do
|
||||
execute 'UPDATE account_warnings SET action = 1 WHERE action = 1000'
|
||||
execute 'UPDATE account_warnings SET action = 2 WHERE action = 2000'
|
||||
execute 'UPDATE account_warnings SET action = 3 WHERE action = 3000'
|
||||
execute 'UPDATE account_warnings SET action = 4 WHERE action = 4000'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue