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