summaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-09 08:47:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-09 08:47:57 +0000
commitf1cc1943dfb110e50354a46f119d13bd806d4bd8 (patch)
treeeacbb9ec8fb426b5b3f0343fd588dcf67fc5c69e /db/migrate
parent02378acc80317e40f0629f92ae778932f0c69cdc (diff)
downloadredmine-f1cc1943dfb110e50354a46f119d13bd806d4bd8.tar.gz
redmine-f1cc1943dfb110e50354a46f119d13bd806d4bd8.zip
remove trailing white-spaces from db/migrate/20101104182107_add_unique_index_on_members.rb (#9510)
Contributed by Igor Zubkov. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7760 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20101104182107_add_unique_index_on_members.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20101104182107_add_unique_index_on_members.rb b/db/migrate/20101104182107_add_unique_index_on_members.rb
index ac51313b1..14d1585f7 100644
--- a/db/migrate/20101104182107_add_unique_index_on_members.rb
+++ b/db/migrate/20101104182107_add_unique_index_on_members.rb
@@ -11,7 +11,7 @@ class AddUniqueIndexOnMembers < ActiveRecord::Migration
" WHERE m.id > (SELECT min(m1.id) FROM #{Member.table_name} m1 WHERE m1.user_id = m.user_id AND m1.project_id = m.project_id)").each do |i|
Member.delete_all(["id = ?", i])
end
-
+
# Then add a unique index
add_index :members, [:user_id, :project_id], :unique => true
end