20130806000001_update_geo.rb 693 B

1234567891011121314151617181920212223242526272829
  1. class UpdateGeo < ActiveRecord::Migration
  2. def up
  3. Setting.create_if_not_exists(
  4. :title => 'Geo Location Backend',
  5. :name => 'geo_backend',
  6. :area => 'System::Geo',
  7. :description => 'Defines the backend for geo location lookups.',
  8. :options => {
  9. :form => [
  10. {
  11. :display => '',
  12. :null => true,
  13. :name => 'geo_backend',
  14. :tag => 'select',
  15. :options => {
  16. '' => '-',
  17. 'Gmaps' => 'Google Maps',
  18. },
  19. },
  20. ],
  21. },
  22. :state => 'Gmaps',
  23. :frontend => true
  24. )
  25. end
  26. def down
  27. end
  28. end