]> git.openstreetmap.org Git - rails.git/blob - db/migrate/015_add_primary_key_on_nodes_id_version.rb
migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm
[rails.git] / db / migrate / 015_add_primary_key_on_nodes_id_version.rb
1 class AddPrimaryKeyOnNodesIdVersion < ActiveRecord::Migration
2
3   #Migration will fail to run unless rake db:node_version has been run previously
4   def self.up
5     add_primary_key "nodes", ["id", "version"] 
6   end
7
8   def self.down
9   end
10 end