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

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