aboutsummaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-07 15:22:36 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-12 08:30:56 +0100
commit13bf88b2e8e6cec0d2207fe7b92f7446eea49354 (patch)
treec408c6bfd9e50cdead72f8cbb5a45a7fe48bd0d9 /db/migrate
parent6b7f16aa3073a4d5cf5d3312a005ac4d2463ef71 (diff)
downloadgovuk-mini-environment-admin-13bf88b2e8e6cec0d2207fe7b92f7446eea49354.tar
govuk-mini-environment-admin-13bf88b2e8e6cec0d2207fe7b92f7446eea49354.tar.gz
Change mini_environment_id to model_id on FinishedTerraformJob
In preparation of setting up backends through Terraform as well.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb b/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb
new file mode 100644
index 0000000..5aef7d4
--- /dev/null
+++ b/db/migrate/20180406082851_change_mini_environment_id_to_model_id.rb
@@ -0,0 +1,5 @@
+class ChangeMiniEnvironmentIdToModelId < ActiveRecord::Migration[5.1]
+ def change
+ rename_column :finished_terraform_jobs, :mini_environment_id, :model_id
+ end
+end