gitlab-org--gitlab-foss/db/fixtures/development/25_api_personal_access_token.rb
2019-03-26 16:39:52 +05:00

15 lines
385 B
Ruby

# frozen_string_literal: true
require './spec/support/sidekiq'
# Create an api access token for root user with the value: ypCa3Dzb23o5nvsixwPA
Gitlab::Seeder.quiet do
PersonalAccessToken.create!(
user_id: User.find_by(username: 'root').id,
name: "seeded-api-token",
scopes: ["api"],
token_digest: "/O0jfLERYT/L5gG8nfByQxqTj43TeLlRzOtJGTzRsbQ="
)
print '.'
end