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:
parent
6de965520b
commit
8d2a4ee67a
1 changed files with 10 additions and 0 deletions
10
db/migrate/015_add_primary_key_on_nodes_id_version.rb
Normal file
10
db/migrate/015_add_primary_key_on_nodes_id_version.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue