提交 e0604f75 编写于 作者: B bogdanvlviv

Refactor AR::Tasks::DatabaseTasks::migrate

Set consistent type cast ENV["VERBOSE"]:
  ENV["VERBOSE"] is true if it not equal "false"
上级 b6ac50b3
......@@ -164,7 +164,7 @@ def drop_current(environment = env)
def migrate
raise "Empty VERSION provided" if ENV["VERSION"] && ENV["VERSION"].empty?
verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] != "false" : true
version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
scope = ENV["SCOPE"]
verbose_was, Migration.verbose = Migration.verbose, verbose
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册