Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batracov Dmitrii Hw 3 #39

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

DmitryBash
Copy link

No description provided.

Copy link
Collaborator

@spajic spajic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом всё понятно, но для проверки сильно не хватает case-study
Тест хорошо бы было добавить на то, что ничего не сломалось.
Без рендеринга паршлов в цикле конечно быстрее, но всё-таки паршлы удобны с точки зрения читаемости и декомпозиции кода, можно было бы попробовать их оставить, но рендерить коллекцией.

@@ -0,0 +1,53 @@
class ImportService
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 плюсик за вынос логики в сервис

change_column_null :trips, :to_id, false
change_column_null :trips, :duration_minutes, false
change_column_null :trips, :price_cents, false
add_index :trips, [:from_id, :to_id], algorithm: :concurrently
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 плюсик за concurrently
советую гем strong_migrations, он не даёт забыть подобные нужные вещи

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants