discourse/db/migrate/20230926165821_drop_post_uploads_table.rb
Natalie Tay 7a1e3accff
DEV: Promote historic post_deploy migrations (#28127)
This commit promotes all post_deploy migrations which existed in Discourse v3.2.0 (timestamp <= 20240112043325)
2024-07-30 00:49:21 +08:00

14 lines
291 B
Ruby

# 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