#naming conventions #
Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| # frozen_string_literal: true | |
| #app/commands/application_command.rb | |
| class ApplicationCommand | |
| include ActiveModel::Model | |
| include ActiveModel::Validations | |
| SENSITIVE_FIELDS = %i[password token credit_card_number].freeze | |
| ERROR_ATTRIBUTES = %i[command oauth_service].freeze | |
| def self.call(*args) | 
| # This command will list all table in a rails app in rails console | |
| ActiveRecord::Base.connection.tables |