diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-15 14:04:28 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 89ad628e887f2e7afa9b956c0fb52cfb31f6141b (patch) | |
tree | 35c5a1ccc8481f783c6b1142bc550ef7b90351e7 /db | |
parent | abb8848eb7f8300939fa40ed6d040c754c88506a (diff) |
Add `share_key` column to status table in preparation for letting folks generate/revoke links to view private posts.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190415185302_add_sharekey_to_status.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
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" |