]> cat aescling's git repositories - mastodon.git/commitdiff
Add content_type to status_edits
authorClaire <claire.github-309c@sitedethib.com>
Wed, 9 Feb 2022 16:59:43 +0000 (17:59 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Wed, 9 Feb 2022 17:02:31 +0000 (18:02 +0100)
app/models/status_edit.rb
db/migrate/20220209175231_add_content_type_to_status_edits.rb [new file with mode: 0644]
db/schema.rb

index 6e88864e8cd149dd1d2c5a6da0fa104a8f883af7..3d8098fe7632e7ab16f75527baba52dab9960331 100644 (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
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 (file)
index 0000000..0e4e52f
--- /dev/null
@@ -0,0 +1,5 @@
+class AddContentTypeToStatusEdits < ActiveRecord::Migration[6.1]
+  def change
+    add_column :status_edits, :content_type, :string
+  end
+end
index ff28f7a7fb0e8161218853a9fa07c78172866d66..252373a7cef86485d2a108e547a6b25a9133eb43 100644 (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