diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-01 16:41:28 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-01 18:47:00 +0100 |
commit | 03b1ffc1a0576f707b323f821597770d66eaae1e (patch) | |
tree | 88401a141e48f6d16a36ab3863063a31a9694d14 /db/migrate | |
parent | 57825439e68e62fc6844bee6c666ac7ad2f01bca (diff) | |
download | govuk-mini-environment-admin-03b1ffc1a0576f707b323f821597770d66eaae1e.tar govuk-mini-environment-admin-03b1ffc1a0576f707b323f821597770d66eaae1e.tar.gz |
Add an optional association to backends for data snapshots
I'm a bit unsure about this, but it feels like generating snapshots
remotely is useful, but if that is supported, then a remote snapshot
won't be available locally to use. Adding the option of making them
backend specific is one way of working around this.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180601153537_add_backend_to_govuk_guix_data_snapshot.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20180601153537_add_backend_to_govuk_guix_data_snapshot.rb b/db/migrate/20180601153537_add_backend_to_govuk_guix_data_snapshot.rb new file mode 100644 index 0000000..9f6f7cc --- /dev/null +++ b/db/migrate/20180601153537_add_backend_to_govuk_guix_data_snapshot.rb @@ -0,0 +1,5 @@ +class AddBackendToGovukGuixDataSnapshot < ActiveRecord::Migration[5.1] + def change + add_reference :govuk_guix_data_snapshots, :backend, polymorphic: true + end +end |