about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-14 15:22:55 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:21 -0500
commit2db51e2f4cc55c520634df8ca34b58742ded0153 (patch)
tree8236f6a359d6d501228cf60c725289c252445e27 /db
parentc86c4b95bee3a51ea7a0d11f0a26b50202853dde (diff)
Refactored community-curated world timeline code; **privacy**: remove support for packmate-visible hashtags until we resolve federation caveats.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190414162149_add_curated_to_status.rb5
-rw-r--r--db/schema.rb3
2 files changed, 8 insertions, 0 deletions
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