summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-03-20 08:24:49 +0000
committerGo MAEDA <maeda@farend.jp>2022-03-20 08:24:49 +0000
commitad308fbff751a2cc9a1268aa77ffeecd30f718cb (patch)
treee13e91f5037477697af2df8955080ca9cbc61d74
parenta70cbe6eb2db8958369397a75b53736f2d2b6a73 (diff)
downloadredmine-ad308fbff751a2cc9a1268aa77ffeecd30f718cb.tar.gz
redmine-ad308fbff751a2cc9a1268aa77ffeecd30f718cb.zip
Merged r21461 from trunk to 4.1-stable (#36766).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21477 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--db/migrate/20090503121505_populate_member_roles.rb2
1 files changed, 1 insertions, 1 deletions
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