Defect #36766 » 36766.patch
db/migrate/20090503121505_populate_member_roles.rb | ||
---|---|---|
2 | 2 |
def self.up |
3 | 3 |
MemberRole.delete_all |
4 | 4 |
Member.all.each do |member| |
5 |
MemberRole.create!(:member_id => member.id, :role_id => member.role_id)
|
|
5 |
MemberRole.insert!({:member_id => member.id, :role_id => member.role_id})
|
|
6 | 6 |
end |
7 | 7 |
end |
8 | 8 |
- « Previous
- 1
- 2
- Next »