mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
parent
a65354c301
commit
169ce19e96
2 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class AddMessagesRegistrarIdFk < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_foreign_key :messages, :registrars, name: 'messages_registrar_id_fk'
|
||||||
|
end
|
||||||
|
end
|
|
@ -4516,6 +4516,14 @@ ALTER TABLE ONLY account_activities
|
||||||
ADD CONSTRAINT fk_rails_d2cc3c2fa9 FOREIGN KEY (price_id) REFERENCES prices(id);
|
ADD CONSTRAINT fk_rails_d2cc3c2fa9 FOREIGN KEY (price_id) REFERENCES prices(id);
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Name: messages_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
|
--
|
||||||
|
|
||||||
|
ALTER TABLE ONLY messages
|
||||||
|
ADD CONSTRAINT messages_registrar_id_fk FOREIGN KEY (registrar_id) REFERENCES registrars(id);
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: user_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
-- Name: user_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
@ -5072,3 +5080,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180126104903');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20180211011450');
|
INSERT INTO schema_migrations (version) VALUES ('20180211011450');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20180211011948');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue