diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-27 23:04:41 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | 94f9e2a768327479c8b2da99cd57ac717cf1589a (patch) | |
tree | 819c093f8fb7c37c6017ede36db4f01854a8bcc8 /db | |
parent | fa06e98228d8dd80a46622c9f393bb90e680d254 (diff) | |
download | govuk-mini-environment-admin-94f9e2a768327479c8b2da99cd57ac717cf1589a.tar govuk-mini-environment-admin-94f9e2a768327479c8b2da99cd57ac717cf1589a.tar.gz |
Add domains to backends, and rework build jobs
Add a domain to the libvirt and AWS Terraform backends. Along the way,
improve the backend controllers and views, and rework the build jobs,
simplifying them in to a single new class GovukGuix::BuildJob, which
uses configuration from the respective backend.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180327204244_add_domain_to_terraform_libvirt_backends.rb | 5 | ||||
-rw-r--r-- | db/migrate/20180327204322_add_domain_to_terraform_aws_backends.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 4 |
3 files changed, 13 insertions, 1 deletions
diff --git a/db/migrate/20180327204244_add_domain_to_terraform_libvirt_backends.rb b/db/migrate/20180327204244_add_domain_to_terraform_libvirt_backends.rb new file mode 100644 index 0000000..5ef99d1 --- /dev/null +++ b/db/migrate/20180327204244_add_domain_to_terraform_libvirt_backends.rb @@ -0,0 +1,5 @@ +class AddDomainToTerraformLibvirtBackends < ActiveRecord::Migration[5.1] + def change + add_column :terraform_libvirt_backends, :domain, :string + end +end diff --git a/db/migrate/20180327204322_add_domain_to_terraform_aws_backends.rb b/db/migrate/20180327204322_add_domain_to_terraform_aws_backends.rb new file mode 100644 index 0000000..9eff4f7 --- /dev/null +++ b/db/migrate/20180327204322_add_domain_to_terraform_aws_backends.rb @@ -0,0 +1,5 @@ +class AddDomainToTerraformAwsBackends < ActiveRecord::Migration[5.1] + def change + add_column :terraform_aws_backends, :domain, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 5c53432..36f0983 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20180326201857) do +ActiveRecord::Schema.define(version: 20180327204322) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -61,6 +61,7 @@ ActiveRecord::Schema.define(version: 20180326201857) do t.string "aws_secret_access_key" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "domain" end create_table "terraform_libvirt_backends", force: :cascade do |t| @@ -68,6 +69,7 @@ ActiveRecord::Schema.define(version: 20180326201857) do t.string "uri" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "domain" end create_table "terraform_states", force: :cascade do |t| |