aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-03-29 06:59:18 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:58:55 +0100
commitaf6f2b6157e2a82ea45607b246ff320b0bf6413f (patch)
tree69b239979c04b0e645d26ab46173bbe982256c93 /db
parent381a12bfdd35ada598c294689e362109c213f54e (diff)
downloadgovuk-mini-environment-admin-af6f2b6157e2a82ea45607b246ff320b0bf6413f.tar
govuk-mini-environment-admin-af6f2b6157e2a82ea45607b246ff320b0bf6413f.tar.gz
Add an archived column to GovukGuix::Revision
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb b/db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb
new file mode 100644
index 0000000..6c46ad3
--- /dev/null
+++ b/db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb
@@ -0,0 +1,5 @@
+class AddArchivedToGovukGuixRevision < ActiveRecord::Migration[5.1]
+ def change
+ add_column :govuk_guix_revisions, :archived, :boolean, default: false, null: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 36f0983..3fedd35 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20180327204322) do
+ActiveRecord::Schema.define(version: 20180329035512) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -26,6 +26,7 @@ ActiveRecord::Schema.define(version: 20180327204322) do
t.string "store_path"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.boolean "archived", default: false, null: false
t.index ["commit_hash"], name: "index_govuk_guix_revisions_on_commit_hash", unique: true
end