Skip to content

Commit 8faac08

Browse files
committed
Ensure migration can run from a fresh db take 2.
1 parent 657ad25 commit 8faac08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrate/20150803044346_data_add_benchmark_result_type_id_to_benchmark_runs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def up
66
.where('repos.name = ? AND organizations.name = ?', 'ruby', 'ruby')
77
.first&.benchmark_types
88

9-
return if ruby_benchmark_types.empty?
9+
return unless ruby_benchmark_types
1010

1111
benchmark_result_type = BenchmarkResultType.create!(
1212
name: 'Execution time', unit: 'Seconds'

0 commit comments

Comments
 (0)