Skip to content

Add first variant of schemas and migrations #2

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

Merged
merged 3 commits into from
Dec 8, 2024
Merged

Add first variant of schemas and migrations #2

merged 3 commits into from
Dec 8, 2024

Conversation

DecafMangoITMO
Copy link

Для запуска:

  1. Поменять данные доступа к БД в файле config/dev.exs
  2. mix ecto.create
    mix ecto.migrate
    mix ecto.drop (чтобы все сбросить)

Основная идея:

  1. Схемы (а-ля описания сущностей) лежат в lib/backend/schemas
  2. Миграции лежат в priv/repo/migrations

ATTENTION!
Для создания новой миграции следует использовать mix ecto.gen.migration <название>

@worthant
Copy link
Member

  • UPD: Fixed linter warnings
  • Note: need to fix ci/cd testing errors. Pr not approved for now.

@DecafMangoITMO DecafMangoITMO force-pushed the fill_ecto branch 3 times, most recently from 7bfea86 to 251ee23 Compare December 8, 2024 18:13
@coveralls
Copy link

Pull Request Test Coverage Report for Build a9cb91312e45a5082f40c6866949b4eb53558b5f-PR-2

Details

  • 0 of 2 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 26.087%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/backend/schemas/file.ex 0 1 0.0%
lib/backend/schemas/user.ex 0 1 0.0%
Totals Coverage Status
Change from base Build 886b626480c0c8f3ad0a592fa965c2e68e17863c: -0.3%
Covered Lines: 48
Relevant Lines: 184

💛 - Coveralls

@worthant worthant merged commit 05167b4 into main Dec 8, 2024
1 check passed
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.

4 participants