about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-02-09 17:59:43 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-02-09 18:02:31 +0100
commitd90da7d080d25355290e5d5e86c2c918d685add7 (patch)
tree59b020274695be37d47d0a4c98962c2677e621e6
parent44b06c4d96b5211725ecfc9483c0fb21198f18cf (diff)
Add content_type to status_edits
-rw-r--r--app/models/status_edit.rb1
-rw-r--r--db/migrate/20220209175231_add_content_type_to_status_edits.rb5
-rw-r--r--db/schema.rb3
3 files changed, 8 insertions, 1 deletions
diff --git a/app/models/status_edit.rb b/app/models/status_edit.rb
index 6e88864e8..3d8098fe7 100644
--- a/app/models/status_edit.rb
+++ b/app/models/status_edit.rb
@@ -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
diff --git a/db/migrate/20220209175231_add_content_type_to_status_edits.rb b/db/migrate/20220209175231_add_content_type_to_status_edits.rb
new file mode 100644
index 000000000..0e4e52fcb
--- /dev/null
+++ b/db/migrate/20220209175231_add_content_type_to_status_edits.rb
@@ -0,0 +1,5 @@
+class AddContentTypeToStatusEdits < ActiveRecord::Migration[6.1]
+  def change
+    add_column :status_edits, :content_type, :string
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ff28f7a7f..252373a7c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -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