It looks like your Dockerfile may have been generated before 29 January 2023, and if so you want:
fly ssh console --pty -C "/app/bin/rails console"
It looks like your Dockerfile may have been generated before 29 January 2023, and if so you want:
fly ssh console --pty -C "/app/bin/rails console"