From f1cc1943dfb110e50354a46f119d13bd806d4bd8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 9 Nov 2011 08:47:57 +0000 Subject: [PATCH] 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 --- db/migrate/20101104182107_add_unique_index_on_members.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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