diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180329035512_add_archived_to_govuk_guix_revision.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
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 |