mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Add domains.uuid
DB column
This commit is contained in:
parent
981c564214
commit
1eca44f32c
2 changed files with 9 additions and 1 deletions
5
db/migrate/20180612042953_add_uuid_to_domains.rb
Normal file
5
db/migrate/20180612042953_add_uuid_to_domains.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddUuidToDomains < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :domains, :uuid, :uuid, default: 'gen_random_uuid()'
|
||||||
|
end
|
||||||
|
end
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue