Mercurial > hg > soundsoftware-site
view .svn/pristine/d4/d4dcf9a5e7b6ef2ec5289c5f08ea6b3b53a0b6cf.svn-base @ 971:b80f97c892bc cannam
Merge from branch "get_statistics"
author | Chris Cannam |
---|---|
date | Fri, 19 Oct 2012 14:47:14 +0100 |
parents | cbb26bc654de |
children |
line wrap: on
line source
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 end def self.down MemberRole.delete_all end end