0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-15 14:06:35 +08:00
discourse/spec/fixtures/db/migrate/drop_default/20250917071036_drop_default.rb
Linca a3e173c5f1
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Publish Assets / publish-assets (push) Waiting to run
Tests / core backend (push) Waiting to run
Tests / plugins backend (push) Waiting to run
Tests / core frontend (Chrome) (push) Waiting to run
Tests / plugins frontend (push) Waiting to run
Tests / themes frontend (push) Waiting to run
Tests / core system (push) Waiting to run
Tests / plugins system (push) Waiting to run
Tests / themes system (push) Waiting to run
Tests / core frontend (Firefox ESR) (push) Waiting to run
Tests / core frontend (Firefox Evergreen) (push) Waiting to run
Tests / chat system (push) Waiting to run
Tests / merge (push) Blocked by required conditions
DEV: Allow DROP DEFAULT in pre-deploy migrations (#34838)
Our SafeMigrate system is designed to prevent tables/columns being
dropped in pre-deploy migrations. Its regex-based detection was
triggering incorrectly on `ALTER COLUMN DROP DEFAULT`.
2025-09-17 16:15:02 +08:00

10 lines
190 B
Ruby
Vendored

# frozen_string_literal: true
class DropDefault < ActiveRecord::Migration[8.0]
def up
change_column_default :posts, :like_count, nil
end
def down
raise "not tested"
end
end