Add domains.uuid DB column

This commit is contained in:
Artur Beljajev 2018-06-12 07:34:40 +03:00
parent 981c564214
commit 1eca44f32c
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddUuidToDomains < ActiveRecord::Migration
def change
add_column :domains, :uuid, :uuid, default: 'gen_random_uuid()'
end
end

View file

@ -912,7 +912,8 @@ CREATE TABLE domains (
status_notes hstore, status_notes hstore,
statuses_backup character varying[] DEFAULT '{}'::character varying[], statuses_backup character varying[] DEFAULT '{}'::character varying[],
upid integer, upid integer,
up_date timestamp without time zone up_date timestamp without time zone,
uuid uuid DEFAULT gen_random_uuid()
); );
@ -4735,3 +4736,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180612042234');
INSERT INTO schema_migrations (version) VALUES ('20180612042625'); INSERT INTO schema_migrations (version) VALUES ('20180612042625');
INSERT INTO schema_migrations (version) VALUES ('20180612042953');