diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-03 13:47:20 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-03 13:47:20 -0500 |
commit | b644f1c5050c96fd95b573cac1f406e6d85446c9 (patch) | |
tree | 005c23d9688b5cc3323f6dda060e1d5f1724ba8e /db | |
parent | cd52f7500603ab82f18d651161e8ab7ca3565e35 (diff) |
respect 'don't @ me' requests
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190803170051_add_reject_replies_to_statuses.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20190803170051_add_reject_replies_to_statuses.rb b/db/migrate/20190803170051_add_reject_replies_to_statuses.rb new file mode 100644 index 000000000..b10c6ec00 --- /dev/null +++ b/db/migrate/20190803170051_add_reject_replies_to_statuses.rb @@ -0,0 +1,5 @@ +class AddRejectRepliesToStatuses < ActiveRecord::Migration[5.2] + def change + add_column :statuses, :reject_replies, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 9197404aa..2ff7cfc28 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_08_01_222823) do +ActiveRecord::Schema.define(version: 2019_08_03_170051) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -669,6 +669,7 @@ ActiveRecord::Schema.define(version: 2019_08_01_222823) do t.string "origin" t.tsvector "tsv" t.boolean "boostable" + t.boolean "reject_replies" t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc } t.index ["account_id", "id", "visibility"], name: "index_statuses_on_account_id_and_id_and_visibility", order: { id: :desc }, where: "(visibility = ANY (ARRAY[0, 1, 2, 4]))" t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id" |