Files
fizzy/db/migrate/20250423114737_remove_notification_resources.rb
T
Jorge Manrubia 2eae58725a Remove notifications' resource relationship
Is confusing since "source" already captures the origin of the notifications. It's
needed to interpret things at rendering time, so we can query things as needed there.
2025-04-23 13:52:47 +02:00

6 lines
167 B
Ruby

class RemoveNotificationResources < ActiveRecord::Migration[8.1]
def change
remove_reference :notifications, :resource, polymorphic: true, index: true
end
end