Add `share_key` column to status table in preparation for letting folks generate/revoke links to view private posts.
parent
abb8848eb7
commit
89ad628e88
|
@ -26,6 +26,7 @@
|
|||
# content_type :string
|
||||
# tsv :tsvector
|
||||
# curated :boolean
|
||||
# sharekey :string
|
||||
#
|
||||
|
||||
class Status < ApplicationRecord
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddSharekeyToStatus < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :statuses, :sharekey, :string
|
||||
end
|
||||
end
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue