correct rake db:create, which needs a defer DB object

This commit is contained in:
Sam 2018-06-19 16:43:50 +10:00
parent 5f64fd0a21
commit b8e5989201
2 changed files with 3 additions and 2 deletions

View File

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

View File

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