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