mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop post_uploads table (#23673)
The post_uploads table has not been used since 9db8f00b3d
This commit is contained in:
13
db/post_migrate/20230926165821_drop_post_uploads_table.rb
Normal file
13
db/post_migrate/20230926165821_drop_post_uploads_table.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DropPostUploadsTable < ActiveRecord::Migration[7.0]
|
||||
DROPPED_TABLES ||= %i[post_uploads]
|
||||
|
||||
def up
|
||||
DROPPED_TABLES.each { |table| Migration::TableDropper.execute_drop(table) }
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user