Sha256: a245da15b9743a7bc7c4cd9421c2cfe4abae8ed8509e5d4b6201e8f6627b1eb6
Contents?: true
Size: 269 Bytes
Versions: 34
Compression:
Stored size: 269 Bytes
Contents
class PopulateMemberRoles < ActiveRecord::Migration def self.up MemberRole.delete_all Member.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
Version data entries
34 entries across 34 versions & 1 rubygems