Create consolidated group event filters table and model
With introduction of consolidated group level external audit event destinations in #436601 (closed), we need to add audit event type filters for the destinations.
It will be as per &12339
With rough estimate for table structure to be
create_table :audit_events_streaming_group_audit_event_type_filters do |t|
t.timestamps_with_timezone null: false
t.references :external_streaming_destination,
null: false,
index: false,
foreign_key: { to_table: 'audit_events_group_external_streaming_destinations', on_delete: :cascade }
t.text :audit_event_type, null: false, limit: 255
t.index [:external_streaming_destination_id, :audit_event_type], unique: true, name: UNIQ_INDEX_NAME
end
Edited by Hitesh Raghuvanshi