Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class CascadeDeleteFromOpenidRequests < ActiveRecord::Migration[8.1]
def change
remove_foreign_key :oauth_openid_requests, column: :access_grant_id, to_table: :oauth_access_grants
add_foreign_key :oauth_openid_requests, :oauth_access_grants, column: :access_grant_id, on_delete: :cascade
end
end
3 changes: 2 additions & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5557,7 +5557,7 @@ ALTER TABLE ONLY public.event_ratings
--

ALTER TABLE ONLY public.oauth_openid_requests
ADD CONSTRAINT fk_rails_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES public.oauth_access_grants(id);
ADD CONSTRAINT fk_rails_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES public.oauth_access_grants(id) ON DELETE CASCADE;


--
Expand Down Expand Up @@ -6135,6 +6135,7 @@ ALTER TABLE ONLY public.cms_files_pages
SET search_path TO "$user", public;

INSERT INTO "schema_migrations" (version) VALUES
('20251210230514'),
('20251109200750'),
('20251001173716'),
('20250906190727'),
Expand Down
Loading