I am running rails server and rails console on Ubuntu 14.04 inside a common terminal (the application is simply called "Terminal").
Whenever I run commands that are related to the database, the console issues a SQL query, but sometimes the text is turquoise and sometimes purple. For example, on this console output:
2.2.2 :025 > pl = ProjectLevel.find_by(name: 'Premium') ProjectLevel Load (0.5ms) SELECT "project_levels".* FROM "project_levels" WHERE "project_levels"."deleted_at" IS NULL AND "project_levels"."name" = $1 LIMIT 1 [["name", "Premium"]] =>
(The colors displayed here do not match my console)
The part that says ProjectLevel Load (0.5ms) will sometimes be turqoise, but sometimes it will be purple, but every other part of the text. Does this color really mean something? Does this tell me something about the success of the request or the returned data? Usually, such things in Rails are pretty intuitive (for example, when a test suite returns green text or red text to tell you if the tests were successful), but I cannot find anything about where these colors come from
ruby sql ruby-on-rails ubuntu rails-console
StephanieS
source share