From 77237c5a6b9044f58beabc54d3589e5fa09cbfba Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 5 Mar 2020 00:07:49 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../20191123081456_add_dismissable_to_broadcast_messages.rb | 9 +++++++++ db/schema.rb | 1 + 2 files changed, 10 insertions(+) create mode 100644 db/migrate/20191123081456_add_dismissable_to_broadcast_messages.rb (limited to 'db') diff --git a/db/migrate/20191123081456_add_dismissable_to_broadcast_messages.rb b/db/migrate/20191123081456_add_dismissable_to_broadcast_messages.rb new file mode 100644 index 00000000000..40235771d80 --- /dev/null +++ b/db/migrate/20191123081456_add_dismissable_to_broadcast_messages.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddDismissableToBroadcastMessages < ActiveRecord::Migration[5.2] + DOWNTIME = false + + def change + add_column :broadcast_messages, :dismissable, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 5cf32dc5752..e6f668884d6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -573,6 +573,7 @@ ActiveRecord::Schema.define(version: 2020_03_03_074328) do t.integer "cached_markdown_version" t.string "target_path", limit: 255 t.integer "broadcast_type", limit: 2, default: 1, null: false + t.boolean "dismissable" t.index ["ends_at", "broadcast_type", "id"], name: "index_broadcast_message_on_ends_at_and_broadcast_type_and_id" end -- cgit v1.2.1