From: Go MAEDA Date: Sun, 20 Mar 2022 08:23:53 +0000 (+0000) Subject: Merged r21461 from trunk to 4.2-stable (#36766). X-Git-Tag: 4.2.5~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6fc3b22b4b18eea84bb8ee7a18c774bd93d6cd8;p=redmine.git Merged r21461 from trunk to 4.2-stable (#36766). git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21476 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/db/migrate/20090503121505_populate_member_roles.rb b/db/migrate/20090503121505_populate_member_roles.rb index e5f246afa..75ba261d4 100644 --- a/db/migrate/20090503121505_populate_member_roles.rb +++ b/db/migrate/20090503121505_populate_member_roles.rb @@ -2,7 +2,7 @@ class PopulateMemberRoles < ActiveRecord::Migration[4.2] def self.up MemberRole.delete_all Member.all.each do |member| - MemberRole.create!(:member_id => member.id, :role_id => member.role_id) + MemberRole.insert!({:member_id => member.id, :role_id => member.role_id}) end end