How can I get commands in Rails Migration file using regex?
I’m trying to get commands from a Rails migration file as an array based on a specific migration command, using regex. My code works well on most cases, but when there is a command with multiline code, it broke and I couldn’t fix.