This blog is part of our Rails 5 series.

In Rails 5, SQL statements have much more granular level of coloration .

INSERT statement

Font color for INSERT command is green

Font color for UPDATE command is yellow and for SELECT it is blue.

DELETE statement

Font color for DELETE command is red.

As you might have noticed from above that font color for transaction is cyan.

Rollback statement

Font color for Rollback transaction is red.

Other statements

For custom SQL statements color is magenta and Model Load/exists color is cyan.