Add content_type to status_edits

This commit is contained in:
Claire 2022-02-09 17:59:43 +01:00
parent 44b06c4d96
commit d90da7d080
3 changed files with 8 additions and 1 deletions

View file

@ -11,6 +11,7 @@
# media_attachments_changed :boolean default(FALSE), not null
# created_at :datetime not null
# updated_at :datetime not null
# content_type :string
#
class StatusEdit < ApplicationRecord

View file

@ -0,0 +1,5 @@
class AddContentTypeToStatusEdits < ActiveRecord::Migration[6.1]
def change
add_column :status_edits, :content_type, :string
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_01_18_183123) do
ActiveRecord::Schema.define(version: 2022_02_09_175231) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -824,6 +824,7 @@ ActiveRecord::Schema.define(version: 2022_01_18_183123) do
t.boolean "media_attachments_changed", default: false, null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "content_type"
t.index ["account_id"], name: "index_status_edits_on_account_id"
t.index ["status_id"], name: "index_status_edits_on_status_id"
end