Category: docker
Subcategory: compose
Value: docker compose run --rm web ./bin/rails runner "<ruby code>"
Miniscription: Run Ruby code in Rails context
Description: Executes arbitrary Ruby code with the full Rails environment loaded inside Docker, useful for one-off data fixes.
Kontributer: iarc13