summaryrefslogtreecommitdiff
path: root/db/migrate/20130531063549_create_geo_ip_countries.rb
blob: 912475613527337d688715e585e29bd2e5b6f250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class CreateGeoIpCountries < ActiveRecord::Migration
  def change
    create_table :geo_ip_countries do |t|
      t.string :from, :limit => '15'
      t.string :to, :limit => '15'
      t.integer :n_from
      t.integer :n_to
      t.integer :country_id
      t.string :country_code, :limit => '2'
      t.string :country_name, :limit => '64'

      t.timestamps
    end
  end
end