1 require "rexml/document"
3 class CreateCountries < ActiveRecord::Migration[4.2]
5 create_table :countries, :id => false do |t|
6 t.column :id, :primary_key, :null => false
7 t.column :code, :string, :limit => 2, :null => false
8 t.column :min_lat, :float, :limit => 53, :null => false
9 t.column :max_lat, :float, :limit => 53, :null => false
10 t.column :min_lon, :float, :limit => 53, :null => false
11 t.column :max_lon, :float, :limit => 53, :null => false
14 add_index :countries, [:code], :name => "countries_code_idx", :unique => true