aboutsummaryrefslogtreecommitdiff
path: root/app/models/govuk_guix/data_snapshot.rb
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-30 20:17:02 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-30 20:17:50 +0100
commit8b1ae33144bc4d496980ffc16cd304c8f107aff4 (patch)
tree198b02c2d5f649b319742f22c80cfa482f1e3d45 /app/models/govuk_guix/data_snapshot.rb
parent31013afdfb53d849f8dabb86f92b467b1f016818 (diff)
downloadgovuk-mini-environment-admin-8b1ae33144bc4d496980ffc16cd304c8f107aff4.tar
govuk-mini-environment-admin-8b1ae33144bc4d496980ffc16cd304c8f107aff4.tar.gz
Add a new DataSnapshot model to store data snapshots
Diffstat (limited to 'app/models/govuk_guix/data_snapshot.rb')
-rw-r--r--app/models/govuk_guix/data_snapshot.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/app/models/govuk_guix/data_snapshot.rb b/app/models/govuk_guix/data_snapshot.rb
new file mode 100644
index 0000000..743bdbc
--- /dev/null
+++ b/app/models/govuk_guix/data_snapshot.rb
@@ -0,0 +1,34 @@
+# GOV.UK Mini Environment Admin
+# Copyright © 2018 Christopher Baines <mail@cbaines.net>
+#
+# This file is part of the GOV.UK Mini Environment Admin.
+#
+# The GOV.UK Mini Environment Admin is free software: you can
+# redistribute it and/or modify it under the terms of the GNU Affero
+# General Public License as published by the Free Software Foundation,
+# either version 3 of the License, or (at your option) any later
+# version.
+#
+# The GOV.UK Mini Environment Admin is distributed in the hope that it
+# will be useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public
+# License along with the GOV.UK Mini Environment Admin. If not, see
+# <http://www.gnu.org/licenses/>.
+
+# == Schema Information
+#
+# Table name: govuk_guix_data_snapshots
+#
+# id :integer not null, primary key
+# store_path :string not null
+# archived :boolean default(FALSE), not null
+# manifest :json not null
+# created_at :datetime not null
+# updated_at :datetime not null
+#
+
+class GovukGuix::DataSnapshot < ApplicationRecord
+end