1 class AddChangesets < ActiveRecord::Migration
3 create_table "changesets", innodb_table do |t|
4 t.column "id", :bigint, :limit => 20, :null => false
5 t.column "user_id", :bigint, :limit => 20, :null => false
6 t.column "created_at", :datetime, :null => false
7 t.column "open", :boolean, :null => false, :default => true
8 t.column "min_lat", :integer, :null => true
9 t.column "max_lat", :integer, :null => true
10 t.column "min_lon", :integer, :null => true
11 t.column "max_lon", :integer, :null => true
14 add_primary_key "changesets", ["id"]
17 change_column "changesets", "id", :bigint, :limit => 20, :null => false, :options => "AUTO_INCREMENT"
19 create_table "changeset_tags", innodb_table do |t|
20 t.column "id", :bigint, :limit => 64, :null => false
21 t.column "k", :string, :default => "", :null => false
22 t.column "v", :string, :default => "", :null => false
25 add_index "changeset_tags", ["id"], :name => "changeset_tags_id_idx"
29 drop_table "changesets"
30 drop_table "changeset_tags"