Use env == 'development' instead of env.development?
It's simpler to assume that passed env is just a string without any extensions, especially when DatabaseTasks are intended to be used also without rails.
Showing
想要评论请 注册 或 登录
It's simpler to assume that passed env is just a string without any extensions, especially when DatabaseTasks are intended to be used also without rails.