Use query instead of model on migrations

parent 7afeace3
......@@ -12,6 +12,6 @@ class MigrateNewNotificationSetting < ActiveRecord::Migration
end
def down
NotificationSetting.delete_all
execute "DELETE FROM notification_settings"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment