mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop unused column translation_overrides.compiled_js
This commit is contained in:
committed by
Loïc Guitaut
parent
be33363f13
commit
bee8214399
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DropCompiledJsFromTranslationOverrides < ActiveRecord::Migration[7.1]
|
||||
DROPPED_COLUMNS ||= { translation_overrides: %i[compiled_js] }
|
||||
|
||||
def up
|
||||
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user