Skip to content

Commit

Permalink
Remove -i option from pg_dump command (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfens authored and ujifgc committed Oct 12, 2016
1 parent e4d63c6 commit 96bb210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-gen/lib/padrino-gen/padrino-tasks/activerecord.rb
Expand Up @@ -246,7 +246,7 @@ def local_database?(config, &block)
if search_path
search_path = search_path.split(",").map{|search_path| "--schema=#{search_path.strip}" }.join(" ")
end
`pg_dump -i -U "#{config[:username]}" -s -x -O -f db/#{Padrino.env}_structure.sql #{search_path} #{config[:database]}`
`pg_dump -U "#{config[:username]}" -s -x -O -f db/#{Padrino.env}_structure.sql #{search_path} #{config[:database]}`
raise "Error dumping database" if $?.exitstatus == 1
when "sqlite", "sqlite3"
dbfile = config[:database] || config[:dbfile]
Expand Down

0 comments on commit 96bb210

Please sign in to comment.