diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-21 23:07:02 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-21 23:07:02 +0100 |
commit | d20ab544d75cf504abefae7a2611958bf07103f4 (patch) | |
tree | ec8ead1f3b0d60f8a9b1f56aa9408bdaf1a26d88 /db | |
parent | 7ae6a547c0bd87aa884080dc239e6392051d50f6 (diff) | |
download | govuk-mini-environment-admin-d20ab544d75cf504abefae7a2611958bf07103f4.tar govuk-mini-environment-admin-d20ab544d75cf504abefae7a2611958bf07103f4.tar.gz |
Remove FinishedTerraformJob
This is no longer necessary, as Que now supports keeping the job
entries around in the que_jobs table.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180621220505_delete_finished_terraform_job.rb | 9 | ||||
-rw-r--r-- | db/structure.sql | 50 |
2 files changed, 11 insertions, 48 deletions
diff --git a/db/migrate/20180621220505_delete_finished_terraform_job.rb b/db/migrate/20180621220505_delete_finished_terraform_job.rb new file mode 100644 index 0000000..ca68a6e --- /dev/null +++ b/db/migrate/20180621220505_delete_finished_terraform_job.rb @@ -0,0 +1,9 @@ +class DeleteFinishedTerraformJob < ActiveRecord::Migration[5.1] + def up + drop_table :finished_terraform_jobs + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/structure.sql b/db/structure.sql index 31c2571..342e36c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -241,38 +241,6 @@ CREATE TABLE public.ar_internal_metadata ( -- --- Name: finished_terraform_jobs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.finished_terraform_jobs ( - id bigint NOT NULL, - model_id integer, - job_class character varying, - created_at timestamp without time zone NOT NULL, - updated_at timestamp without time zone NOT NULL -); - - --- --- Name: finished_terraform_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.finished_terraform_jobs_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: finished_terraform_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.finished_terraform_jobs_id_seq OWNED BY public.finished_terraform_jobs.id; - - --- -- Name: govuk_guix_data_snapshots; Type: TABLE; Schema: public; Owner: - -- @@ -589,13 +557,6 @@ ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id; -- --- Name: finished_terraform_jobs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.finished_terraform_jobs ALTER COLUMN id SET DEFAULT nextval('public.finished_terraform_jobs_id_seq'::regclass); - - --- -- Name: govuk_guix_data_snapshots id; Type: DEFAULT; Schema: public; Owner: - -- @@ -660,14 +621,6 @@ ALTER TABLE ONLY public.ar_internal_metadata -- --- Name: finished_terraform_jobs finished_terraform_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.finished_terraform_jobs - ADD CONSTRAINT finished_terraform_jobs_pkey PRIMARY KEY (id); - - --- -- Name: govuk_guix_data_snapshots govuk_guix_data_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -920,6 +873,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20180601153537'), ('20180601182655'), ('20180603120426'), -('20180621065525'); +('20180621065525'), +('20180621220505'); |