-
Notifications
You must be signed in to change notification settings - Fork 7
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
Simplify ticket system #2014
Simplify ticket system #2014
Conversation
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.
routes.rbにordersとcancel_ordersが残っているので削除をお願いします!
app/views/profiles/_form.html.erb
Outdated
<div class="col-12 col-md-6" id="participation" > | ||
<%= form.label :participation, "参加方法" %></br> | ||
<%= form.radio_button :participation, :online, { class: "radio_button_participation", id: "participation_online" } %> | ||
<%= form.label :online, { for: "participation_online" } %> |
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.
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.
表記を変更しました。
@@ -0,0 +1,5 @@ | |||
class AddParticipationColumnsToProfile < ActiveRecord::Migration[7.0] | |||
def change | |||
add_column :profiles, :participation, :string |
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.
現地参加可能な人数は上限があるので、それを管理できるようにしてもらえますか?
チケットの時はticketsテーブルに管理用のカラムがありました。
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.
定員を Conference に持たせて管理するようにしました。
Simplecov Report
|
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.
LGTM!
思ったより変更範囲が多くなってしまった感じですがチケットで処理していた部分を Profile の Enum で置き換えるように変更しました。