2022-06-10から1日間の記事一覧
環境 rubocop 1.30.0 Ruby 3.1.0 エラー内容 Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||. if文の中身が1行の場合は、後置ifを使用するか、&&または||を使用してください。 エラ…
rubocopでUse the return of the conditional for variable assignment and comparison.のエラーが出た時の対処法。 環境 rubocop 1.30.0 Ruby 3.1.0 エラー内容 Use the return of the conditional for variable assignment and comparison. 変数の代入と比…
この記事では、さくらのVPS上のDebianにPostgreSQLをインストールして、Macから外部接続する方法を紹介します。 環境 Debian GNU/Linux 11 bullseye (さくらのVPS) macOS Monterey 12.4 PostgreSQL 14.3 手順 以下の流れで進めていきます。 PostgreSQLのイン…