diff options
author | Go MAEDA <maeda@farend.jp> | 2022-03-18 02:07:14 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-03-18 02:07:14 +0000 |
commit | fb74b90fef9645ac694eccd6569d7b3012c5f8c8 (patch) | |
tree | ad6b9d751d1274a599be13ec6372f3ee6e4e480b /db | |
parent | 8529e39e6da800f2f075d04362eb49a32bc83e64 (diff) | |
download | redmine-fb74b90fef9645ac694eccd6569d7b3012c5f8c8.tar.gz redmine-fb74b90fef9645ac694eccd6569d7b3012c5f8c8.zip |
Database migration from Redmine 0.8.7 or earlier fails (#36766).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21461 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20090503121505_populate_member_roles.rb | 2 |
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 |