Class: CreateCacheTypes
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateCacheTypes
- Defined in:
- lib/geostats/migrations/002_create_cache_types.rb
Class Method Summary collapse
Class Method Details
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/geostats/migrations/002_create_cache_types.rb', line 2 def self.up create_table :cache_types do |t| t.string :name end cache_types = ["Traditional Cache", "Multi-Cache", "Mystery Cache", "Letterbox Hybrid", "Wherigo Cache", "EarthCache", "Virtual Cache", "Webcam Cache", "Reverse Cache", "Event Cache", "Mega-Event Cache", "10 Years! Event Cache"] cache_types.each do |cache_type| Geostats::CacheType.create! :name => cache_type end end |