mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 02:11:15 +08:00
This commit promotes all post_deploy migrations which existed in Discourse v3.4.0 (timestamp <= 20241023041126)
12 lines
353 B
Ruby
12 lines
353 B
Ruby
# frozen_string_literal: true
|
|
class DropPasswordColumnsFromUsers < ActiveRecord::Migration[7.1]
|
|
DROPPED_COLUMNS = { users: %i[password_hash salt password_algorithm] }
|
|
|
|
def up
|
|
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|