This blog is part of our Rails 5 series.
In Rails 5, SQL statements have much more granular level of coloration .
Font color for INSERT command is green

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

Font color for DELETE command is red.

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

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


Written byAbhishek Jain
Related blogs
- 01Rails 5 Active Record attributes APIDecember 11, 2018 · Abhay Nikam
- 02Rails 5 Create module and class level variablesSeptember 5, 2016 · Abhishek Jain
- 03Rails 5 silences assets logs in dev mode by defaultSeptember 2, 2016 · Midhun Krishna
- 04Rails 5 disables autoloading while app in productionAugust 29, 2016 · Shailesh Kalamkar