diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-23 18:34:48 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:15 -0500 |
commit | 980339b73e294e39b8fd650b5a4c25f39b31d00e (patch) | |
tree | e1040f17abf27e4adb05c7bb678f91aefeb09dbc /db | |
parent | 47584d20c5c91189f0791b4b63ace361a25b614f (diff) |
[Federation] Add backend support for ActivityPub object titles
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20200723225552_add_title_to_statuses.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20200723225552_add_title_to_statuses.rb b/db/migrate/20200723225552_add_title_to_statuses.rb new file mode 100644 index 000000000..16ae7264b --- /dev/null +++ b/db/migrate/20200723225552_add_title_to_statuses.rb @@ -0,0 +1,5 @@ +class AddTitleToStatuses < ActiveRecord::Migration[5.2] + def change + add_column :statuses, :title, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 3cbbd7732..111bf086d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -813,6 +813,7 @@ ActiveRecord::Schema.define(version: 2020_07_24_045955) do t.integer "edited", default: 0, null: false t.integer "nest_level", limit: 2, default: 0, null: false t.boolean "published", default: true, null: false + t.text "title" t.index ["account_id", "id", "visibility", "updated_at"], name: "index_statuses_20190820", order: { id: :desc }, where: "(deleted_at IS NULL)" t.index ["account_id", "id"], name: "index_unpublished_statuses", order: { id: :desc }, where: "((deleted_at IS NULL) AND (published = false))" t.index ["conversation_id"], name: "index_statuses_on_conversation_id", where: "(deleted_at IS NULL)" |