-
-
Notifications
You must be signed in to change notification settings - Fork 108
直近のイベント情報を格納するDBスキーマの定義 #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@AnaTofuZ 「未来のイベント」だと10年後とか20年後とかも意味合いとしては含まれてしまうから、今回の文脈では |
@yasulab なるほど |
@yasulab 名前を |
@AnaTofuZ FutureEvents から UpcomingEvents に変更されたコミットのログって残しておく必要ありますかね...? 🤔 なければ Squash してしまった方が良さそうです >< 💦 |
確かに結果的にはいらないですね…!!Squashしてみます |
特に今回の場合、PR内でマイグレーションが完結しているので、Squash しちゃった方が後からコミットログを見る人に親切そうです 😊 |
db/schema.rb
Outdated
@@ -61,6 +61,24 @@ | |||
t.index ["region"], name: "index_prefectures_on_region" | |||
end | |||
|
|||
create_table "recently_events", force: :cascade do |t| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename前の定義が残っているのでここも削除しておいてほしいです😌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename前のテーブル定義の削除とコミットのsquashが入ればLGTMです 👍
32b9d17
to
e000629
Compare
使っていないテーブルの削除と過去のcommitをSquash してみました |
@AnaTofuZ Typo 👀
|
上記の Typo 以外は問題なさそうです! Typo 修正したらマージしちゃいますね ;) |
#270 からの派生です。 直近のイベント情報を保存させたい為にupcoming_eventsとしてテーブルを定義 しました。 またdojo_idを持たせない等の正規化も行っています
e000629
to
8e716cb
Compare
typo修正しました |
マージしました! 👍 ✨ |
ありがとうございます! 🙏 |
背景
events
を作るに辺り直近のイベント情報が欲しい [WIP]/events
の追加 #270関連 Issue: #258
やること
be rails g migration CreateFutureEvents dojo_event_service_id:integer event_id:string event_url:string evented_ad:datetime
今回は未来のイベントなのでFutureEventsとして定義していますその後名前を
Future
からUpcoming
に修正しました