diff options
Diffstat (limited to 'db/migrate/20090503121505_populate_member_roles.rb')
-rw-r--r-- | db/migrate/20090503121505_populate_member_roles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20090503121505_populate_member_roles.rb b/db/migrate/20090503121505_populate_member_roles.rb index aae9fc611..285d7e51a 100644 --- a/db/migrate/20090503121505_populate_member_roles.rb +++ b/db/migrate/20090503121505_populate_member_roles.rb @@ -1,7 +1,7 @@ class PopulateMemberRoles < ActiveRecord::Migration def self.up MemberRole.delete_all - Member.find(:all).each do |member| + Member.all.each do |member| MemberRole.create!(:member_id => member.id, :role_id => member.role_id) end end |