]> source.dussan.org Git - redmine.git/commitdiff
Clear member_roles table before populating it.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:18:09 +0000 (11:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 May 2009 11:18:09 +0000 (11:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2729 e93f8b46-1217-0410-a6f0-8f06a7374b81

db/migrate/20090503121505_populate_member_roles.rb

index 8b7c987501d135e4598ba69fa8efd3ec04a08eae..aae9fc611e7b05ee7b33d1fcc3d567252724e15f 100644 (file)
@@ -1,5 +1,6 @@
 class PopulateMemberRoles < ActiveRecord::Migration
   def self.up
+    MemberRole.delete_all
     Member.find(:all).each do |member|
       MemberRole.create!(:member_id => member.id, :role_id => member.role_id)
     end