diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-29 06:59:18 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:58:55 +0100 |
commit | af6f2b6157e2a82ea45607b246ff320b0bf6413f (patch) | |
tree | 69b239979c04b0e645d26ab46173bbe982256c93 | |
parent | 381a12bfdd35ada598c294689e362109c213f54e (diff) | |
download | govuk-mini-environment-admin-af6f2b6157e2a82ea45607b246ff320b0bf6413f.tar govuk-mini-environment-admin-af6f2b6157e2a82ea45607b246ff320b0bf6413f.tar.gz |
Add an archived column to GovukGuix::Revision
-rw-r--r-- | app/models/govuk_guix/revision.rb | 1 | ||||
-rw-r--r-- | db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/app/models/govuk_guix/revision.rb b/app/models/govuk_guix/revision.rb index 1657edb..45793b2 100644 --- a/app/models/govuk_guix/revision.rb +++ b/app/models/govuk_guix/revision.rb @@ -6,6 +6,7 @@ # store_path :string # created_at :datetime not null # updated_at :datetime not null +# archived :boolean default(FALSE), not null # class GovukGuix::Revision < ApplicationRecord 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 |