Skip to content

Commit ca27993

Browse files
authored
fix(Sync): Order Problem (#5768)
**Story card:** [SIMPLEBACK-52](https://) ## Because Syncing patients with cvd risks fails ## This addresses Loosening up the link between CVD Risks and Patients ## Test instructions n/a
1 parent aae98df commit ca27993

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class UnlinkPatientsFromCvdRisks < ActiveRecord::Migration[6.1]
2+
def change
3+
remove_foreign_key :cvd_risks, :patients
4+
end
5+
end

db/structure.sql

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8442,14 +8442,6 @@ ALTER TABLE ONLY public.drug_stocks
84428442
ADD CONSTRAINT fk_rails_8eb7cdedd2 FOREIGN KEY (user_id) REFERENCES public.users(id);
84438443

84448444

8445-
--
8446-
-- Name: cvd_risks fk_rails_90e3653e9a; Type: FK CONSTRAINT; Schema: public; Owner: -
8447-
--
8448-
8449-
ALTER TABLE ONLY public.cvd_risks
8450-
ADD CONSTRAINT fk_rails_90e3653e9a FOREIGN KEY (patient_id) REFERENCES public.patients(id);
8451-
8452-
84538445
--
84548446
-- Name: clean_medicine_to_dosages fk_rails_96b1526de4; Type: FK CONSTRAINT; Schema: public; Owner: -
84558447
--
@@ -8802,5 +8794,7 @@ INSERT INTO "schema_migrations" (version) VALUES
88028794
('20251211154907'),
88038795
('20251215113615'),
88048796
('20251219061210'),
8805-
('20260128094448');
8797+
('20260128094448'),
8798+
('20260212195326');
8799+
88068800

0 commit comments

Comments
 (0)