Skip to content

Commit 4ab1f74

Browse files
Merge pull request #266 from travis-ci/logs_changes_am
Disable job logs PRD
2 parents 9c0e6ed + 58c797f commit 4ab1f74

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class CreateAuditsTable < ActiveRecord::Migration[5.2]
2+
def self.up
3+
create_table :audits do |t|
4+
t.integer :owner_id
5+
t.string :owner_type
6+
t.datetime :created_at
7+
t.string :change_source
8+
t.json :source_changes
9+
t.integer :source_id
10+
t.string :source_type
11+
end
12+
end
13+
14+
def self.down
15+
drop_table :audits
16+
end
17+
end

db/main/structure.sql

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3022,6 +3022,41 @@ CREATE SEQUENCE public.users_id_seq
30223022
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
30233023

30243024

3025+
--
3026+
-- Name: audits; Type: TABLE; Schema: public; Owner: -
3027+
--
3028+
3029+
CREATE TABLE public.audits (
3030+
id integer NOT NULL,
3031+
owner_id integer NOT NULL,
3032+
owner_type character varying,
3033+
created_at timestamp without time zone NOT NULL,
3034+
change_source character varying,
3035+
source_changes jsonb NOT NULL,
3036+
source_id integer NOT NULL,
3037+
source_type character varying
3038+
);
3039+
3040+
3041+
--
3042+
-- Name: audits_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3043+
--
3044+
3045+
CREATE SEQUENCE public.audits_id_seq
3046+
START WITH 1
3047+
INCREMENT BY 1
3048+
NO MINVALUE
3049+
NO MAXVALUE
3050+
CACHE 1;
3051+
3052+
3053+
--
3054+
-- Name: audits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
3055+
--
3056+
3057+
ALTER SEQUENCE public.audits_id_seq OWNED BY public.audits.id;
3058+
3059+
30253060
--
30263061
-- Name: abuses id; Type: DEFAULT; Schema: public; Owner: -
30273062
--
@@ -3337,6 +3372,12 @@ ALTER TABLE ONLY public.user_utm_params ALTER COLUMN id SET DEFAULT nextval('pub
33373372
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
33383373

33393374

3375+
--
3376+
-- Name: audits id; Type: DEFAULT; Schema: public; Owner: -
3377+
--
3378+
3379+
ALTER TABLE ONLY public.audits ALTER COLUMN id SET DEFAULT nextval('public.audits_id_seq'::regclass);
3380+
33403381
--
33413382
-- Name: abuses abuses_pkey; Type: CONSTRAINT; Schema: public; Owner: -
33423383
--
@@ -3729,6 +3770,14 @@ ALTER TABLE ONLY public.users
37293770
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
37303771

37313772

3773+
--
3774+
-- Name: audits audits_pkey; Type: CONSTRAINT; Schema: public; Owner: -
3775+
--
3776+
3777+
ALTER TABLE ONLY public.audits
3778+
ADD CONSTRAINT audits_pkey PRIMARY KEY (id);
3779+
3780+
37323781
--
37333782
-- Name: github_id_installations_idx; Type: INDEX; Schema: public; Owner: -
37343783
--

spec/travis_migrations_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
let(:expected_main_tables) do
1010
%w(
1111
abuses
12+
audits
1213
beta_features
1314
beta_migration_requests
1415
branches

0 commit comments

Comments
 (0)