Commit 2d7c3dbf authored by Robert Speicher's avatar Robert Speicher

Merge branch 'deprecated-insert-sql' into 'master'

Fix deprecation: insert_sql is deprecated and will be removed

See merge request gitlab-org/gitlab-ce!23944
parents 6a8b89d9 01185be0
---
title: 'Fix deprecation: insert_sql is deprecated and will be removed'
merge_request: 23944
author: Jasper Maes
type: other
...@@ -46,7 +46,7 @@ class CreateMissingNamespaceForInternalUsers < ActiveRecord::Migration[4.2] ...@@ -46,7 +46,7 @@ class CreateMissingNamespaceForInternalUsers < ActiveRecord::Migration[4.2]
end end
insert_query = "INSERT INTO namespaces(owner_id, path, name, created_at, updated_at) VALUES(#{user_id}, '#{path}', '#{path}', NOW(), NOW())" insert_query = "INSERT INTO namespaces(owner_id, path, name, created_at, updated_at) VALUES(#{user_id}, '#{path}', '#{path}', NOW(), NOW())"
namespace_id = connection.insert_sql(insert_query) namespace_id = connection.insert(insert_query)
create_route(namespace_id) create_route(namespace_id)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment