From 8b1ae33144bc4d496980ffc16cd304c8f107aff4 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 30 May 2018 20:17:02 +0100 Subject: Add a new DataSnapshot model to store data snapshots --- .../20180530191341_create_govuk_guix_data_snapshots.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb (limited to 'db/migrate') diff --git a/db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb b/db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb new file mode 100644 index 0000000..3327127 --- /dev/null +++ b/db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb @@ -0,0 +1,13 @@ +class CreateGovukGuixDataSnapshots < ActiveRecord::Migration[5.1] + def change + create_table :govuk_guix_data_snapshots do |t| + t.string :store_path, null: false + t.boolean :archived, default: false, null: false + t.json :manifest, null: false + + t.timestamps + end + + add_index :govuk_guix_data_snapshots, :store_path, unique: true + end +end -- cgit v1.2.3