mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Add revoked boolean to Certificate model
This commit is contained in:
parent
1a58d85f15
commit
90f933a5a1
2 changed files with 10 additions and 2 deletions
5
db/migrate/20200505103316_add_revoked_to_certificate.rb
Normal file
5
db/migrate/20200505103316_add_revoked_to_certificate.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddRevokedToCertificate < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :certificates, :revoked, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
|
@ -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');
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue