diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-14 21:52:54 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-14 21:52:54 +0300 |
commit | 1aa48174db63871bb10b53e49c86222a4d9b7c6d (patch) | |
tree | 63de989577bd4304dbeee82bfb2a1e41bbdd4976 /db | |
parent | 13af7de9411ef20fcab00f7c5d7cdc6b90dbd4b7 (diff) | |
download | gitlab-ce-1aa48174db63871bb10b53e49c86222a4d9b7c6d.tar.gz |
Fix STI+polymorphic for Group <-> GroupMember
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20140914145549_migrate_to_new_members_model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20140914145549_migrate_to_new_members_model.rb b/db/migrate/20140914145549_migrate_to_new_members_model.rb index b4f7718f26d..2a5a49c724a 100644 --- a/db/migrate/20140914145549_migrate_to_new_members_model.rb +++ b/db/migrate/20140914145549_migrate_to_new_members_model.rb @@ -1,6 +1,6 @@ class MigrateToNewMembersModel < ActiveRecord::Migration def up - execute "INSERT INTO members ( user_id, source_id, source_type, access_level, notification_level, type ) SELECT user_id, group_id, 'Group', group_access, notification_level, 'GroupMember' FROM users_groups" + execute "INSERT INTO members ( user_id, source_id, source_type, access_level, notification_level, type ) SELECT user_id, group_id, 'Namespace', group_access, notification_level, 'GroupMember' FROM users_groups" execute "INSERT INTO members ( user_id, source_id, source_type, access_level, notification_level, type ) SELECT user_id, project_id, 'Project', project_access, notification_level, 'ProjectMember' FROM users_projects" end |