Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
christocracy committed Jul 15, 2008
1 parent e02629e commit f184031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/geonames_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace :geonames do

config = ActiveRecord::Base.configurations[RAILS_ENV]

["country", "country_region", "country_region_city"].each do |name|
["country", "country_region", "country_region_city", "country_region_city_airport"].each do |name|
cmd = "/usr/bin/pg_dump -U postgres -t #{name} -a #{config['database']} --format=c > db/#{name}.sql"
# show cmd user before execing
puts ">#{cmd}"
Expand All @@ -27,7 +27,7 @@ namespace :geonames do

config = ActiveRecord::Base.configurations[RAILS_ENV]

["country", "country_region", "country_region_city"].each do |name|
["country", "country_region", "country_region_city", "country_region_city_airport"].each do |name|
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}"
Expand Down

0 comments on commit f184031

Please sign in to comment.