remove request notifications migration
This commit is contained in:
parent
12b5bd4b23
commit
38e75d47f1
1 changed files with 13 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
class DeleteAllNewRequestNotifications < ActiveRecord::Migration
|
||||
def self.up
|
||||
execute <<SQL
|
||||
DELETE notifications.* FROM notifications
|
||||
WHERE notifications.type = 'Notifications::NewRequest'
|
||||
OR notifications.type = 'Notifications::RequestAccepted'
|
||||
SQL
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise ActiveRecord::IrreversibleMigration.new
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue