]> git.openstreetmap.org Git - rails.git/blob - db/migrate/013_create_old_node_tags.rb
aeb5abd4c959da23962449d6110da39a69664b74
[rails.git] / db / migrate / 013_create_old_node_tags.rb
1 class CreateOldNodeTags < ActiveRecord::Migration
2   def self.up
3     create_table "node_tags", myisam_table do |t|
4       t.column "id",          :bigint, :limit => 64, :default => 0, :null => false
5       t.column "version",     :bigint, :limit => 20,                :null => false
6       t.column "sequence_id", :bigint, :limit => 11,                :null => false
7       t.column "k",           :string,                              :null => false
8       t.column "v",           :string,                              :null => false
9     end
10
11     add_primary_key "node_tags", ["id", "version", "sequence_id"]
12   end
13
14   def self.down
15     drop_table :node_tags
16   end
17 end