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 /app/models/mini_environment.rb | |
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 'app/models/mini_environment.rb')
-rw-r--r-- | app/models/mini_environment.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/models/mini_environment.rb b/app/models/mini_environment.rb index 502cff2..d3f8ec3 100644 --- a/app/models/mini_environment.rb +++ b/app/models/mini_environment.rb @@ -36,15 +36,6 @@ # class MiniEnvironment < ApplicationRecord - has_many( - :finished_terraform_jobs, - lambda do |mini_environment| - unscope(:where).where( - 'finished_terraform_jobs.model_id = ?', mini_environment.id - ) - end, - dependent: :destroy - ) belongs_to :govuk_guix_revision, class_name: 'GovukGuix::Revision' belongs_to :backend, polymorphic: true |