summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/20090503121505_populate_member_roles.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20090503121505_populate_member_roles.rb b/db/migrate/20090503121505_populate_member_roles.rb
index 8b7c98750..aae9fc611 100644
--- a/db/migrate/20090503121505_populate_member_roles.rb
+++ b/db/migrate/20090503121505_populate_member_roles.rb
@@ -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