diff options
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)" |