mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
AddInvoicesBuyerIdFk
This commit is contained in:
parent
f1b37853b9
commit
b177b3eab2
2 changed files with 15 additions and 0 deletions
5
db/migrate/20190811202347_add_invoices_buyer_id_fk.rb
Normal file
5
db/migrate/20190811202347_add_invoices_buyer_id_fk.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddInvoicesBuyerIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :invoices, :registrars, column: :buyer_id
|
||||
end
|
||||
end
|
|
@ -3913,6 +3913,14 @@ ALTER TABLE ONLY public.domains
|
|||
ADD CONSTRAINT domains_registrar_id_fk FOREIGN KEY (registrar_id) REFERENCES public.registrars(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: fk_rails_242b91538b; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.invoices
|
||||
ADD CONSTRAINT fk_rails_242b91538b FOREIGN KEY (buyer_id) REFERENCES public.registrars(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: fk_rails_59c422f73d; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
@ -4823,3 +4831,5 @@ INSERT INTO schema_migrations (version) VALUES ('20190811195814');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190811202042');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20190811202347');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue