From 2db51e2f4cc55c520634df8ca34b58742ded0153 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 14 Apr 2019 15:22:55 -0500 Subject: Refactored community-curated world timeline code; **privacy**: remove support for packmate-visible hashtags until we resolve federation caveats. --- db/migrate/20190414162149_add_curated_to_status.rb | 5 +++++ db/schema.rb | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 db/migrate/20190414162149_add_curated_to_status.rb (limited to 'db') diff --git a/db/migrate/20190414162149_add_curated_to_status.rb b/db/migrate/20190414162149_add_curated_to_status.rb new file mode 100644 index 000000000..2ae1a0ac3 --- /dev/null +++ b/db/migrate/20190414162149_add_curated_to_status.rb @@ -0,0 +1,5 @@ +class AddCuratedToStatus < ActiveRecord::Migration[5.2] + def change + add_column :statuses, :curated, :boolean, null: true, default: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index be9818fa2..993c94d2e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -639,10 +639,13 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do t.boolean "local_only" t.bigint "poll_id" t.string "content_type" + t.tsvector "tsv" + t.boolean "curated" t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20180106", order: { id: :desc } t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id" t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id" t.index ["reblog_of_id", "account_id"], name: "index_statuses_on_reblog_of_id_and_account_id" + t.index ["tsv"], name: "tsv_idx", using: :gin t.index ["uri"], name: "index_statuses_on_uri", unique: true end -- cgit