Rename DomainTransfer#transfer_from to old_registrar

This commit is contained in:
Artur Beljajev 2018-01-23 19:00:46 +02:00
parent 404932316d
commit d99a63d476
8 changed files with 18 additions and 11 deletions

View file

@ -958,7 +958,7 @@ CREATE TABLE domain_transfers (
status character varying,
transfer_requested_at timestamp without time zone,
transferred_at timestamp without time zone,
transfer_from_id integer,
old_registrar_id integer,
transfer_to_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
@ -4441,7 +4441,7 @@ ALTER TABLE ONLY domains
--
ALTER TABLE ONLY domain_transfers
ADD CONSTRAINT fk_rails_59c422f73d FOREIGN KEY (transfer_from_id) REFERENCES registrars(id);
ADD CONSTRAINT fk_rails_59c422f73d FOREIGN KEY (old_registrar_id) REFERENCES registrars(id);
--
@ -5062,3 +5062,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180123124342');
INSERT INTO schema_migrations (version) VALUES ('20180123154407');
INSERT INTO schema_migrations (version) VALUES ('20180123165604');