Merge remote-tracking branch 'upstream/pull/5510'

This commit is contained in:
Tom Hughes 2025-01-18 11:41:08 +00:00
commit 8809e1fd08
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class ValidateForeignKeyOnNotes < ActiveRecord::Migration[7.2]
def change
validate_foreign_key :notes, :users
end
end

View file

@ -3218,7 +3218,7 @@ ALTER TABLE ONLY public.note_comments
--
ALTER TABLE ONLY public.notes
ADD CONSTRAINT notes_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id) NOT VALID;
ADD CONSTRAINT notes_user_id_fkey FOREIGN KEY (user_id) REFERENCES public.users(id);
--
@ -3408,6 +3408,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('23'),
('22'),
('21'),
('20250105154621'),
('20250104140952'),
('20241023004427'),
('20241022141247'),