aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb')
-rw-r--r--db/migrate/20180530191341_create_govuk_guix_data_snapshots.rb13
1 files changed, 13 insertions, 0 deletions
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