An open source, stand-alone, customisable public spending data web app.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

slugify.rb 336 B

12345678910111213141516
  1. require 'lib/models'
  2. for supplier in Supplier.all
  3. supplier.slug = Supplier.slugify(supplier.name)
  4. supplier.save!
  5. end
  6. for service in Service.all
  7. service.slug = Service.slugify(service.name)
  8. service.save!
  9. end
  10. for directorate in Directorate.all
  11. directorate.slug = Directorate.slugify(directorate.name)
  12. directorate.save!
  13. end