Mercurial > hg > soundsoftware-site
view db/migrate/20090503121505_populate_member_roles.rb @ 591:9e866f13c984 feature_36
Author Autocomplete: Changes in the User/Authorship selection mechanism.
Separated the search box from the name field.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 12 Aug 2011 16:21:35 +0100 |
parents | 513646585e45 |
children | 622f24f53b42 |
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