提交 dd550337 编写于 作者: Ł Łukasz Strzałkowski

Cast env to symbol, fixes deprecation warning

Warning:

  DEPRECATION WARNING: Passing a string to ActiveRecord::Base.establish_connection for a configuration lookup is deprecated, please pass a symbol (:development) instead.
上级 7a9d2925
......@@ -78,7 +78,7 @@ def create_current(environment = env)
each_current_configuration(environment) { |configuration|
create configuration
}
ActiveRecord::Base.establish_connection environment
ActiveRecord::Base.establish_connection(environment.to_sym)
end
def drop(*arguments)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册