added new fields into nameserver model

This commit is contained in:
olegphenomenon 2022-01-06 14:33:06 +02:00
parent 287c4ea5d6
commit d896e5f716
2 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,7 @@
class AddValidationFieldsToNameserver < ActiveRecord::Migration[6.1]
def change
add_column :nameservers, :validation_datetime, :datetime
add_column :nameservers, :validation_counter, :integer
add_column :nameservers, :failed_validation_reason, :string
end
end

View file

@ -824,7 +824,8 @@ CREATE TABLE public.dnskeys (
creator_str character varying,
updator_str character varying,
legacy_domain_id integer,
updated_at timestamp without time zone
updated_at timestamp without time zone,
validation_datetime timestamp without time zone
);
@ -2177,7 +2178,10 @@ CREATE TABLE public.nameservers (
creator_str character varying,
updator_str character varying,
legacy_domain_id integer,
hostname_puny character varying
hostname_puny character varying,
validation_datetime timestamp without time zone,
validation_counter integer,
failed_validation_reason character varying
);
@ -5389,6 +5393,8 @@ INSERT INTO "schema_migrations" (version) VALUES
('20211124084308'),
('20211125181033'),
('20211125184334'),
('20211126085139');
('20211126085139'),
('20211231113934'),
('20220106123143');