about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/status.rb1
-rw-r--r--db/migrate/20190415185302_add_sharekey_to_status.rb5
-rw-r--r--db/schema.rb1
3 files changed, 7 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index fa16ede49..2e4808cb5 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -26,6 +26,7 @@
 #  content_type           :string
 #  tsv                    :tsvector
 #  curated                :boolean
+#  sharekey               :string
 #
 
 class Status < ApplicationRecord
diff --git a/db/migrate/20190415185302_add_sharekey_to_status.rb b/db/migrate/20190415185302_add_sharekey_to_status.rb
new file mode 100644
index 000000000..9e7933355
--- /dev/null
+++ b/db/migrate/20190415185302_add_sharekey_to_status.rb
@@ -0,0 +1,5 @@
+class AddSharekeyToStatus < ActiveRecord::Migration[5.2]
+  def change
+    add_column :statuses, :sharekey, :string
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 993c94d2e..b01b2fcf5 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -641,6 +641,7 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do
     t.string "content_type"
     t.tsvector "tsv"
     t.boolean "curated"
+    t.string "sharekey"
     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"