diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-10 11:18:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-05-10 11:18:09 +0000 |
commit | bbb5a47b2ab95674c27d837f1279134e4c54b720 (patch) | |
tree | 4a93eda7d9fadf5f0074e8e47d12dd3c55ba622c /db | |
parent | 88532b6817d6138a32a76b0e49f6fe8d208785e8 (diff) | |
download | redmine-bbb5a47b2ab95674c27d837f1279134e4c54b720.tar.gz redmine-bbb5a47b2ab95674c27d837f1279134e4c54b720.zip |
Clear member_roles table before populating it.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2729 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20090503121505_populate_member_roles.rb | 1 |
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 |