From 6c1e809dfe10d4c4552cad079ce7c4a736de9f22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jok=C5=ABbas=20Lekevi=C4=8Dius?= <89832261+joklek-vinted@users.noreply.github.com> Date: Thu, 11 Jul 2024 16:38:15 +0300 Subject: [PATCH] Add eve comment at the end of file, not beginning --- lib/pronto/rails_migrations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pronto/rails_migrations.rb b/lib/pronto/rails_migrations.rb index 3052f70..871c666 100644 --- a/lib/pronto/rails_migrations.rb +++ b/lib/pronto/rails_migrations.rb @@ -66,7 +66,7 @@ def bad_structure_sql_messages def message(patch, text, level: :error) path = patch.delta.new_file[:path] - line = patch.added_lines.first + line = patch.added_lines.last Message.new(path, line, level, text, nil, self.class) end