DEV: Allow DROP NOT NULL in pre-deploy migrations (#20775)

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 NOT NULL`.
This commit is contained in:
David Taylor
2023-03-22 14:43:32 +00:00
committed by GitHub
parent a0140f6f75
commit 7070f81596
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
# frozen_string_literal: true
class DropNotNull < ActiveRecord::Migration[5.1]
def up
change_column_null :users, :username, true
end
def down
raise "not tested"
end
end