mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
correct rake db:create, which needs a defer DB object
This commit is contained in:
@ -24,8 +24,9 @@ class MiniSqlMultisiteConnection < MiniSql::Connection
|
||||
end
|
||||
|
||||
def self.instance
|
||||
new(nil, param_encoder: ParamEncoder.new, type_map: self.type_map(ActiveRecord::Base.connection.raw_connection))
|
||||
new(nil, param_encoder: ParamEncoder.new)
|
||||
end
|
||||
|
||||
# we need a tiny adapter here so we always run against the
|
||||
# correct multisite connection
|
||||
def raw_connection
|
||||
|
Reference in New Issue
Block a user