Change domain registrar_id and registrant_id to NOT NULL

#480
This commit is contained in:
Artur Beljajev 2017-06-06 19:16:46 +03:00
parent b20e31f3c8
commit 930a59ae67
4 changed files with 34 additions and 17 deletions

View file

@ -1033,12 +1033,12 @@ ALTER SEQUENCE domain_transfers_id_seq OWNED BY domain_transfers.id;
CREATE TABLE domains (
id integer NOT NULL,
name character varying,
registrar_id integer,
registrar_id integer NOT NULL,
registered_at timestamp without time zone,
status character varying,
valid_from timestamp without time zone,
valid_to timestamp without time zone,
registrant_id integer,
registrant_id integer NOT NULL,
auth_info character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
@ -5154,3 +5154,5 @@ INSERT INTO schema_migrations (version) VALUES ('20170509215614');
INSERT INTO schema_migrations (version) VALUES ('20170606133501');
INSERT INTO schema_migrations (version) VALUES ('20170606150352');