mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 00:33:36 +02:00
parent
e2ebe0aa84
commit
b545bc9767
2 changed files with 15 additions and 0 deletions
5
db/migrate/20171009080822_add_user_registrar_id_fk.rb
Normal file
5
db/migrate/20171009080822_add_user_registrar_id_fk.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddUserRegistrarIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :users, :registrars, name: 'user_registrar_id_fk'
|
||||
end
|
||||
end
|
|
@ -4665,6 +4665,14 @@ ALTER TABLE ONLY account_activities
|
|||
ADD CONSTRAINT fk_rails_d2cc3c2fa9 FOREIGN KEY (price_id) REFERENCES prices(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: user_registrar_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY users
|
||||
ADD CONSTRAINT user_registrar_id_fk FOREIGN KEY (registrar_id) REFERENCES registrars(id);
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
@ -5167,3 +5175,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170606150352');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20170606202859');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20171009080822');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue