Skip to content

A platform for community discussion. Free, open, simple.

DEV: remove chat channel icon upload id (#36693)

David Battersbyfa1a0f88afa5
diff --git a/plugins/chat/db/post_migrate/20251215125122_drop_icon_upload_id_from_chat_channels.rb b/plugins/chat/db/post_migrate/20251215125122_drop_icon_upload_id_from_chat_channels.rb
new file mode 100644
index 00000000000..656f2395b5b
--- /dev/null
+++ b/plugins/chat/db/post_migrate/20251215125122_drop_icon_upload_id_from_chat_channels.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class DropIconUploadIdFromChatChannels < ActiveRecord::Migration[8.0]
+ DROPPED_COLUMNS = { chat_channels: %i[icon_upload_id] }
+
+ def up
+ DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
+ end
+
+ def down
+ raise ActiveRecord::IrreversibleMigration
+ end
+end