Sha256: 831f8c9a3ca3e68c36901a6a76291e20c4c2280c0079ef203b27dce753a53714

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

class CreateGeoLocations < ActiveRecord::Migration
  def change
    create_table :geo_locations do |t|
      t.string :address
      t.float :latitude
      t.float :longitude
      t.string :country
      t.string :country_code
      t.string :city
      t.string :postal_code

      t.timestamps
    end
    add_index :geo_locations, :address
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 db/migrate/20130313234131_create_geo_locations.rb
your_platform-1.0.0 db/migrate/20130313234131_create_geo_locations.rb
your_platform-0.0.2 db/migrate/20130313234131_create_geo_locations.rb