2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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