Add locked_by_registrant_at field to domain

This commit is contained in:
Maciej Szlosarczyk 2018-08-08 13:37:40 +03:00
parent 544c8565c5
commit 4743b1e2a5
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,7 @@
class AddRegistryLockTimeColumn < ActiveRecord::Migration
def change
change_table(:domains) do |t|
t.column :locked_by_registrant_at, :datetime, null: true
end
end
end

View file

@ -912,7 +912,8 @@ CREATE TABLE public.domains (
statuses_backup character varying[] DEFAULT '{}'::character varying[],
upid integer,
up_date timestamp without time zone,
uuid uuid DEFAULT public.gen_random_uuid() NOT NULL
uuid uuid DEFAULT public.gen_random_uuid() NOT NULL,
locked_by_registrant_at timestamp without time zone
);
@ -4757,3 +4758,5 @@ INSERT INTO schema_migrations (version) VALUES ('20180613030330');
INSERT INTO schema_migrations (version) VALUES ('20180613045614');
INSERT INTO schema_migrations (version) VALUES ('20180808064402');