From b8f7ccf22729b77fbb5a44ecda01de5329d07adc Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 21 Dec 2019 12:08:49 -0600 Subject: add option to set mutes that apply only to timelines --- db/migrate/20191221164844_add_timelines_only_to_mute.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20191221164844_add_timelines_only_to_mute.rb (limited to 'db') diff --git a/db/migrate/20191221164844_add_timelines_only_to_mute.rb b/db/migrate/20191221164844_add_timelines_only_to_mute.rb new file mode 100644 index 000000000..0bfb7bad6 --- /dev/null +++ b/db/migrate/20191221164844_add_timelines_only_to_mute.rb @@ -0,0 +1,5 @@ +class AddTimelinesOnlyToMute < ActiveRecord::Migration[5.2] + def change + add_column :mutes, :timelines_only, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 81fc11630..f6f1ba209 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: 2019_12_20_020441) do +ActiveRecord::Schema.define(version: 2019_12_21_164844) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -443,6 +443,7 @@ ActiveRecord::Schema.define(version: 2019_12_20_020441) do t.boolean "hide_notifications", default: true, null: false t.bigint "account_id", null: false t.bigint "target_account_id", null: false + t.boolean "timelines_only", default: false, null: false t.index ["account_id", "target_account_id"], name: "index_mutes_on_account_id_and_target_account_id", unique: true t.index ["target_account_id"], name: "index_mutes_on_target_account_id" end -- cgit