mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Add contacts.uuid
DB column
This commit is contained in:
parent
4b977dc195
commit
981c564214
2 changed files with 9 additions and 1 deletions
5
db/migrate/20180612042625_add_uuid_to_contacts.rb
Normal file
5
db/migrate/20180612042625_add_uuid_to_contacts.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddUuidToContacts < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :contacts, :uuid, :uuid, default: 'gen_random_uuid()'
|
||||
end
|
||||
end
|
|
@ -639,7 +639,8 @@ CREATE TABLE contacts (
|
|||
original_id integer,
|
||||
ident_updated_at timestamp without time zone,
|
||||
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 ('20180612042625');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue