Skip to content

Commit

Permalink
Securely signed releases PRD (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiMysko authored and vitalie committed Dec 29, 2022
1 parent 765d9b6 commit 0d739db
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
20 changes: 20 additions & 0 deletions db/main/migrate/20220825140522_create_custom_keys_table.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class CreateCustomKeysTable < ActiveRecord::Migration[5.2]
def self.up
create_table :custom_keys do |t|
t.integer :owner_id
t.string :owner_type
t.string :name
t.string :private_key
t.string :public_key
t.string :fingerprint
t.text :description
t.integer :added_by
t.timestamp :created_at
t.timestamp :updated_at
end
end

def self.down
drop_table :custom_keys
end
end
56 changes: 55 additions & 1 deletion db/main/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,44 @@ CREATE SEQUENCE public.crons_id_seq
ALTER SEQUENCE public.crons_id_seq OWNED BY public.crons.id;


--
-- Name: custom_keys; Type: TABLE; Schema: public; Owner: -
--

CREATE TABLE public.custom_keys (
id integer NOT NULL,
owner_id integer NOT NULL,
owner_type character varying,
name character varying,
private_key character varying,
public_key character varying,
fingerprint character varying,
description text,
added_by integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);


--
-- Name: custom_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--

CREATE SEQUENCE public.custom_keys_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;


--
-- Name: custom_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--

ALTER SEQUENCE public.custom_keys_id_seq OWNED BY public.custom_keys.id;


--
-- Name: deleted_build_configs; Type: TABLE; Schema: public; Owner: -
--
Expand Down Expand Up @@ -3140,6 +3178,13 @@ ALTER TABLE ONLY public.coupons ALTER COLUMN id SET DEFAULT nextval('public.coup
ALTER TABLE ONLY public.crons ALTER COLUMN id SET DEFAULT nextval('public.crons_id_seq'::regclass);


--
-- Name: custom_keys id; Type: DEFAULT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.custom_keys ALTER COLUMN id SET DEFAULT nextval('public.custom_keys_id_seq'::regclass);


--
-- Name: email_unsubscribes id; Type: DEFAULT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -3490,6 +3535,14 @@ ALTER TABLE ONLY public.crons
ADD CONSTRAINT crons_pkey PRIMARY KEY (id);


--
-- Name: custom_keys custom_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--

ALTER TABLE ONLY public.custom_keys
ADD CONSTRAINT custom_keys_pkey PRIMARY KEY (id);


--
-- Name: email_unsubscribes email_unsubscribes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -5909,6 +5962,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20210203143406'),
('20210614140633'),
('20220621151453'),
('20220722162400');
('20220722162400'),
('20220825140522');


1 change: 1 addition & 0 deletions spec/travis_migrations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
commits
coupons
crons
custom_keys
deleted_builds
deleted_stages
deleted_jobs
Expand Down

0 comments on commit 0d739db

Please sign in to comment.