mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
correct rake db:create, which needs a defer DB object
This commit is contained in:
parent
5f64fd0a21
commit
b8e5989201
|
@ -176,7 +176,7 @@ GEM
|
|||
mini_portile2 (2.3.0)
|
||||
mini_racer (0.1.15)
|
||||
libv8 (~> 6.3)
|
||||
mini_sql (0.1.4)
|
||||
mini_sql (0.1.5)
|
||||
mini_suffix (0.3.0)
|
||||
ffi (~> 1.9)
|
||||
minitest (5.11.3)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user