aboutsummaryrefslogtreecommitdiffstats
path: root/railties/fresh_rakefile
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-10 17:32:03 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-10 17:32:03 +0000
commit1ee780b3bb0037cb4c9a0dd5288a4ae92dcf54c3 (patch)
treeb8be42a5ae29f44652bc43393f4d75c87ca421b8 /railties/fresh_rakefile
parent5cd815addfe88e7a1f886b9722963d24343db4ed (diff)
downloadrails-1ee780b3bb0037cb4c9a0dd5288a4ae92dcf54c3.tar.gz
rails-1ee780b3bb0037cb4c9a0dd5288a4ae92dcf54c3.tar.bz2
rails-1ee780b3bb0037cb4c9a0dd5288a4ae92dcf54c3.zip
Fixed that ownership is brought over in pg_dump during tests for PostgreSQL #1060 [pburleson@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1135 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/fresh_rakefile')
-rwxr-xr-xrailties/fresh_rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile
index 6f3cc61ae5..b6991bf076 100755
--- a/railties/fresh_rakefile
+++ b/railties/fresh_rakefile
@@ -151,7 +151,7 @@ task :db_structure_dump => :environment do
ENV['PGHOST'] = abcs[RAILS_ENV]["host"] if abcs[RAILS_ENV]["host"]
ENV['PGPORT'] = abcs[RAILS_ENV]["port"].to_s if abcs[RAILS_ENV]["port"]
ENV['PGPASSWORD'] = abcs[RAILS_ENV]["password"]
- `pg_dump -U "#{abcs[RAILS_ENV]["username"]}" -s -x -f db/#{RAILS_ENV}_structure.sql #{abcs[RAILS_ENV]["database"]}`
+ `pg_dump -U "#{abcs[RAILS_ENV]["username"]}" -s -x -O -f db/#{RAILS_ENV}_structure.sql #{abcs[RAILS_ENV]["database"]}`
when "sqlite", "sqlite3"
`#{abcs[RAILS_ENV]["adapter"]} #{abcs[RAILS_ENV]["dbfile"]} .schema > db/#{RAILS_ENV}_structure.sql`
else