1 class CreateTempOldNodes < ActiveRecord::Migration
3 create_table "temp_nodes", myisam_table do |t|
4 t.column "id", :bigint, :limit => 64, :null => false
5 t.column "version", :bigint, :limit => 20, :null => false
6 t.column "latitude", :double, :null => false
7 t.column "longitude", :double, :null => false
8 t.column "user_id", :bigint, :limit => 20, :null => false
9 t.column "visible", :boolean, :null => false
10 t.column "timestamp", :datetime, :null => false
11 t.column "tile", :integer, :null => false
14 add_primary_key "temp_nodes", ["id", "version"]
15 add_index "temp_nodes", ["timestamp"], :name => "temp_nodes_timestamp_idx"
16 add_index "temp_nodes", ["tile"], :name => "temp_nodes_tile_idx"
18 change_column "temp_nodes", "version", :bigint, :limit => 20, :null => false, :options => "AUTO_INCREMENT"
22 drop_table :temp_nodes