##// END OF EJS Templates
Enforced unicity of relations between 2 issues with a database index (#9685)....
Enforced unicity of relations between 2 issues with a database index (#9685). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8041 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2814:70118fb136b1
r7921:39ae7b66f86a
Show More
20091017213113_add_missing_indexes_to_enumerations.rb
9 lines | 209 B | text/x-ruby | RubyLexer
/ db / migrate / 20091017213113_add_missing_indexes_to_enumerations.rb
class AddMissingIndexesToEnumerations < ActiveRecord::Migration
def self.up
add_index :enumerations, [:id, :type]
end
def self.down
remove_index :enumerations, :column => [:id, :type]
end
end