DEV: prevent already defined global warning

DEV: prevent already defined global warning

diff --git a/lib/migration/base_dropper.rb b/lib/migration/base_dropper.rb
index d013bea..e6f397e 100644
--- a/lib/migration/base_dropper.rb
+++ b/lib/migration/base_dropper.rb
@@ -2,7 +2,7 @@
 
 module Migration
   class BaseDropper
-    FUNCTION_SCHEMA_NAME = "discourse_functions".freeze
+    FUNCTION_SCHEMA_NAME ||= "discourse_functions".freeze
 
     def self.create_readonly_function(table_name, column_name = nil)
       DB.exec <<~SQL

GitHub sha: 5dd97d6d

1 Like