Sha256: 95b4dc83f4617e97d8b8d9c0e65599623b9c0c4d6e500e5f678ffd4586a703c2

Contents?: true

Size: 572 Bytes

Versions: 30

Compression:

Stored size: 572 Bytes

Contents

class GeocoderMaxmindGeoliteCountry < ActiveRecord::Migration<%= migration_version %>
  def self.up
    create_table :maxmind_geolite_country, id: false do |t|
      t.column :start_ip, :string
      t.column :end_ip, :string
      t.column :start_ip_num, :bigint, null: false
      t.column :end_ip_num, :bigint, null: false
      t.column :country_code, :string, null: false
      t.column :country, :string, null: false
    end
    add_index :maxmind_geolite_country, :start_ip_num, unique: true
  end

  def self.down
    drop_table :maxmind_geolite_country
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
geocoder-1.8.5 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.8.4 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.8.3 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.8.2 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.8.1 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.8.0 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.5 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.4 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.3 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.2 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.1 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.7.0 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.7 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.6 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.5 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.4 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.3 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.2 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.1 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb
geocoder-1.6.0 lib/generators/geocoder/maxmind/templates/migration/geolite_country.rb