提交 1db8f9d5 编写于 作者: A Aaron Patterson

Merge pull request #10349 from caliper-io/mute_psql_output

Fix noisy output when running rake db:schema:load on postgreSQL and structure.sql
Conflicts:
	activerecord/CHANGELOG.md
上级 d881f61f
* Mute `psql` output when running rake db:schema:load.
*Godfrey Chan*
## Rails 4.0.0.rc1 (April 29, 2013) ##
* Trigger a save on `has_one association=(associate)` when the associate contents have changed.
......
......@@ -59,7 +59,7 @@ def structure_dump(filename)
def structure_load(filename)
set_psql_env
Kernel.system("psql -f #{filename} #{configuration['database']}")
Kernel.system("psql -q -f #{filename} #{configuration['database']}")
end
private
......
......@@ -227,7 +227,7 @@ def setup
def test_structure_load
filename = "awesome-file.sql"
Kernel.expects(:system).with("psql -f #{filename} my-app-db")
Kernel.expects(:system).with("psql -q -f #{filename} my-app-db")
ActiveRecord::Tasks::DatabaseTasks.structure_load(@configuration, filename)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册