Permalink
Browse files

remove trailing white-spaces from db/migrate/20101104182107_add_uniqu…

…e_index_on_members.rb (#9510)

Contributed by Igor Zubkov.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@7760 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
tmaruyama
tmaruyama committed Nov 9, 2011
1 parent f888959 commit 066ef91859bace7bd3006d9e9fc4411146fb8e21
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/20101104182107_add_unique_index_on_members.rb
@@ -11,7 +11,7 @@ def self.up
" 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

0 comments on commit 066ef91

Please sign in to comment.