about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-15 14:04:28 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commit89ad628e887f2e7afa9b956c0fb52cfb31f6141b (patch)
tree35c5a1ccc8481f783c6b1142bc550ef7b90351e7
parentabb8848eb7f8300939fa40ed6d040c754c88506a (diff)
Add `share_key` column to status table in preparation for letting folks generate/revoke links to view private posts.
-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"