added migration to add a primary key on nodes id and version - should be run after rake db:node_version

This commit is contained in:
Nick Black 2008-01-23 17:10:16 +00:00
parent 6de965520b
commit 8d2a4ee67a

View file

@ -0,0 +1,10 @@
class AddPrimaryKeyOnNodesIdVersion < ActiveRecord::Migration
#Migration will fail to run unless rake db:node_version has been run previously
def self.up
add_primary_key "nodes", ["id", "version"]
end
def self.down
end
end