Commit 9d5aca31d1cf11c8c1674de821a7a1c2afced7c0
Exists in
spb-stable
and in
3 other branches
Merge pull request #6601 from cirosantilli/dev-key-id-from-1
Start development Key seed id from 1 to prevent `Couldn't find Key with id=0` crash on MySQL.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/fixtures/development/11_keys.rb
... | ... | @@ -2,7 +2,7 @@ Gitlab::Seeder.quiet do |
2 | 2 | User.first(30).each_with_index do |user, i| |
3 | 3 | Key.seed(:id, [ |
4 | 4 | { |
5 | - id: i, | |
5 | + id: i + 1, | |
6 | 6 | title: "Sample key #{i}", |
7 | 7 | key: "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt#{i + 100}6k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=", |
8 | 8 | user_id: user.id, | ... | ... |