diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-19 12:10:14 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:43:08 -0500 |
commit | a34ccaef8d22110fc9926702ee9c5b06388c13fb (patch) | |
tree | d0ad77949883243d53c19d173a1de51467ac9336 /db | |
parent | 86733d97efac4886b0bf8c0a4ee8c645076eb1e7 (diff) |
[Feature] Add timeline-only mutes
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200719114344_add_timelines_only_to_mute.rb | 7 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20200719114344_add_timelines_only_to_mute.rb b/db/migrate/20200719114344_add_timelines_only_to_mute.rb new file mode 100644 index 000000000..20bbfcd59 --- /dev/null +++ b/db/migrate/20200719114344_add_timelines_only_to_mute.rb @@ -0,0 +1,7 @@ +class AddTimelinesOnlyToMute < ActiveRecord::Migration[5.2] + def change + safety_assured do + add_column :mutes, :timelines_only, :boolean, default: false, null: false + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 9618dc7d4..ff878d47e 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: 2020_07_19_033609) do +ActiveRecord::Schema.define(version: 2020_07_19_114344) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -531,6 +531,7 @@ ActiveRecord::Schema.define(version: 2020_07_19_033609) 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 |