Skip to content
Browse files

No commit message

  • Loading branch information...
1 parent 2c08023 commit e02629ef1b4ed65c818c445072f7e4b8834a5af9 christocracy committed Jul 4, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/geonames_tasks.rake
View
4 tasks/geonames_tasks.rake
@@ -13,7 +13,7 @@ namespace :geonames do
config = ActiveRecord::Base.configurations[RAILS_ENV]
["country", "country_region", "country_region_city"].each do |name|
- cmd = "/usr/bin/pg_dump -U postgres -t #{name} -a #{config['database']} --format=c > #{name}.sql"
+ cmd = "/usr/bin/pg_dump -U postgres -t #{name} -a #{config['database']} --format=c > db/#{name}.sql"
# show cmd user before execing
puts ">#{cmd}"
puts `#{cmd}`
@@ -28,7 +28,7 @@ namespace :geonames do
config = ActiveRecord::Base.configurations[RAILS_ENV]
["country", "country_region", "country_region_city"].each do |name|
- cmd = "/usr/bin/pg_restore -U postgres -t #{name} -a -d #{config['database']} --format=c < #{name}.sql"
+ cmd = "/usr/bin/pg_restore -U postgres -t #{name} -a -d #{config['database']} --format=c < db/#{name}.sql"
# show cmd user before execing
puts ">#{cmd}"
puts `#{cmd}`

0 comments on commit e02629e

Please sign in to comment.
Something went wrong with that request. Please try again.