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