Add contacts.uuid DB column

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

View file

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

View file

@ -639,7 +639,8 @@ CREATE TABLE contacts (
original_id integer, original_id integer,
ident_updated_at timestamp without time zone, ident_updated_at timestamp without time zone,
upid integer, upid integer,
up_date timestamp without time zone up_date timestamp without time zone,
uuid uuid DEFAULT gen_random_uuid()
); );
@ -4732,3 +4733,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180331200125');
INSERT INTO schema_migrations (version) VALUES ('20180612042234'); INSERT INTO schema_migrations (version) VALUES ('20180612042234');
INSERT INTO schema_migrations (version) VALUES ('20180612042625');