DEV: prevent already defined global warning

This commit is contained in:
Régis Hanol 2019-05-16 11:32:10 +02:00 committed by GitHub
parent 4a9756ff3f
commit 5dd97d6d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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