Updated for Rails 4.0, UTF-8 and USDA SR-25 database.