aboutsummaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-03 13:06:30 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-03 14:09:13 +0100
commit93c1c6e5b76ed712f6c5107c6a124025279996d6 (patch)
tree9744ed6a454e8d5ba69657e4ad5fdd699b726b25 /db/migrate
parentf74331a8e6d5b0ae9c2c73a36ba19730752269aa (diff)
downloadgovuk-mini-environment-admin-93c1c6e5b76ed712f6c5107c6a124025279996d6.tar
govuk-mini-environment-admin-93c1c6e5b76ed712f6c5107c6a124025279996d6.tar.gz
Change how the EFS File System is handled
For the AWS backend. Bring it in to the Terraform configuration for the backend, where previously only the id was known. Also, alter the provisioning so that it can handle an empty EFS file system. This reduces the amount of manual setup required for AWS.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb b/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb
new file mode 100644
index 0000000..25abfb5
--- /dev/null
+++ b/db/migrate/20180603120426_remove_efs_file_system_id_from_backends_terraform_aws.rb
@@ -0,0 +1,5 @@
+class RemoveEfsFileSystemIdFromBackendsTerraformAws < ActiveRecord::Migration[5.1]
+ def change
+ remove_column :terraform_aws_backends, :efs_file_system_id, :string
+ end
+end