Add revoked boolean to Certificate model

This commit is contained in:
Karl Erik Õunapuu 2020-05-05 13:38:21 +03:00
parent 1a58d85f15
commit 90f933a5a1
2 changed files with 10 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddRevokedToCertificate < ActiveRecord::Migration[5.2]
def change
add_column :certificates, :revoked, :boolean, null: false, default: false
end
end

View file

@ -476,7 +476,8 @@ CREATE TABLE public.certificates (
updated_at timestamp without time zone,
common_name character varying,
md5 character varying,
interface character varying
interface character varying,
revoked boolean DEFAULT false NOT NULL
);
@ -4463,5 +4464,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200130092113'),
('20200203143458'),
('20200204103125'),
('20200311114649');
('20200311114649'),
('20200505103316');