Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/models
config
.DS_Store
.gitkeep
.rvmrc
Gemfile
Gemfile.lock
README
csv-ss.xlsx
test.csv
test.yaml
update-city.rb
updates.csv
updates.yaml
updates2.yaml

README

ruby script to modify locations table's region field.

requires:
  ruby 1.9.2
  rubygems
  mysql
  
      
If you don't already have a database with the sql loaded into it, create a database in mysql named mysql-test_development and import the data. note - if you want to use a different database name then change the database field in config/database.yml

Then after installing ruby 1.9.2 and rubygems run the following commands in bash while in the app directory
    $ cd path/to/app    
    $ gem install bundler
    $ bundle install
    $ bundle exec ruby update-city.rb
    
    follow the prompts and enjoy
    
Something went wrong with that request. Please try again.