]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/011_create_node_tags.rb
Fix typo.
[rails.git] / db / migrate / 011_create_node_tags.rb
index e0e791404901d9a54ddda9febf243f17c212e153..316602d69482266400bdba2cfba11fe792724366 100644 (file)
@@ -1,18 +1,15 @@
 class CreateNodeTags < ActiveRecord::Migration
   def self.up
     create_table "current_node_tags", myisam_table do |t|
-      t.column "id", :bigint, :limit => 64
-      t.column "sequence_id", :bigint, :limit => 11
-      t.column "k",  :string,                :default => "", :null => false
-      t.column "v",  :string,                :default => "", :null => false
+      t.column "id",          :bigint, :limit => 64,                 :null => false
+      t.column "sequence_id", :bigint, :limit => 11,                 :null => false
+      t.column "k",           :string,              :default => "", :null => false
+      t.column "v",           :string,              :default => "", :null => false
     end
 
-    add_index "current_node_tags", ["id"], :name => "current_node_tags_id_idx"
-    add_primary_key "current_node_tags", ["sequence_id", "id"]
+    add_primary_key "current_node_tags", ["id", "sequence_id"]
        
     execute "CREATE FULLTEXT INDEX `current_node_tags_v_idx` ON `current_node_tags` (`v`)"
-
-
   end
 
   def self.down