brew install protobuf
add to your .zshrc :
export GOBIN=$PWD/bin
export PATH=$GOBIN:$PATH
make proto_install
to install proto bin locally.
It will create a bin directory, witch it gitignore by default.
run make generate file=<path_to_file_in_rpc_folder
To create a new migration:
make migration-generate:
It will create a new migration in /migrations
.
Migrations are automatcly loaded in the database at the start of the server.
To disable migration, you can set the env variable
MIGRATION_ENABLE=false