Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`Drop events.coach_description`

クローズ 初心者向け
#3,019 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #3030 @mroderick による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rails, ruby
領域
backend, database

調査の方向性

Event モデルの self.ignored_columns を追加する場所と、カラムを設定している spec/fabricators/event_fabricator.rb から始めてください。db/schema.rb とマイグレーションの履歴を確認し、ほかに対象のカラムを読んでいる箇所がないことを確かめてください。PR 1 は、カラムが無視されるようになり、fabricator の該当行が削除され、テストスイートが通った時点で完了です。PR 2 では safety_assured を付けた remove_column マイグレーションを追加し、db/schema.rb を再生成します。PR 2 は PR 1 のデプロイ後にのみリリースしてください。

索引モデルが issue の本文から書いたものです。

説明

refactoring trivial

Problem

events.coach_description is a text column from the early event-invites feature. Its reads were removed in de44fe17 (2016-06-14, "Event invites rebased (#461)"), which replaced the coach-specific text in invitation mailers with the general event.description. Nothing reads it today, and it is not on any admin form. Production snapshot (2026-10-12): 3 non-null of 260 rows.

The only write left in the codebase is spec/fabricators/event_fabricator.rb, which sets a Faker sentence; that line goes away with the drop.

Proposed change

Two-step, as with #3007:

  1. PR 1: add coach_description to self.ignored_columns on Event and delete the fabricator line.
  2. PR 2: safety_assured { remove_column :events, :coach_description, :text }, plus regenerate schema.rb.

Acceptance

  • After PR 1: event queries no longer name the column; event fabricator no longer sets it; suite passes.
  • After PR 2: column gone from schema.rb; full suite passes.

Labels: refactoring, trivial

主要言語
Ruby
スター
106
フォーク
208
平均マージ
19時間 31分
マージ済み PR(30日)
84

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codebar/planner のほかの issue

codebar/planner の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。