aboutsummaryrefslogtreecommitdiff
path: root/app/models/govuk_guix/data_snapshot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/govuk_guix/data_snapshot.rb')
-rw-r--r--app/models/govuk_guix/data_snapshot.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/govuk_guix/data_snapshot.rb b/app/models/govuk_guix/data_snapshot.rb
index 4cec33a..ec40cc4 100644
--- a/app/models/govuk_guix/data_snapshot.rb
+++ b/app/models/govuk_guix/data_snapshot.rb
@@ -29,6 +29,8 @@
# created_at :datetime not null
# updated_at :datetime not null
# govuk_guix_revision_commit_hash :string not null
+# backend_type :string
+# backend_id :integer
#
class GovukGuix::DataSnapshot < ApplicationRecord
@@ -37,4 +39,5 @@ class GovukGuix::DataSnapshot < ApplicationRecord
class_name: 'GovukGuix::Revision',
foreign_key: 'govuk_guix_revision_commit_hash'
)
+ belongs_to :backend, polymorphic: true, optional: true
end