Sha256: 05ee51af31a88f8c879b421c1e733445e0246077b3f69c8d0bd9748fac96ca77

Contents?: true

Size: 388 Bytes

Versions: 11

Compression:

Stored size: 388 Bytes

Contents

class GetGeocodes < ActiveRecord::Migration
  def self.up
    # [Event, EventVenue].each do |klass|
    #   klass.reset_column_information
    #   klass.find(:all).each do |this|
    #     this.send :geocode_location
    #     if this.changed?
    #       p "#{this.location} -> #{this.geocode}"
    #       this.save!
    #     end
    #   end
    # end
  end

  def self.down
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-event_map-extension-1.4.1 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.4.0 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.6 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.5 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.4 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.3 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.2 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.1 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.3.0 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.2.0 db/migrate/20100311105231_get_geocodes.rb
radiant-event_map-extension-1.1.0 db/migrate/20100311105231_get_geocodes.rb