about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
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