remove request notifications migration

This commit is contained in:
danielgrippi 2011-05-17 11:06:36 -07:00
parent 12b5bd4b23
commit 38e75d47f1

View file

@ -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