Add `share_key` column to status table in preparation for letting folks generate/revoke links to view private posts.

staging
multiple creatures 2019-04-15 14:04:28 -05:00
parent abb8848eb7
commit 89ad628e88
3 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@
# content_type :string
# tsv :tsvector
# curated :boolean
# sharekey :string
#
class Status < ApplicationRecord

View File

@ -0,0 +1,5 @@
class AddSharekeyToStatus < ActiveRecord::Migration[5.2]
def change
add_column :statuses, :sharekey, :string
end
end

View File

@ -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"