Skip to content

Commit

Permalink
Add 'first time speaking' checkbox to proposal form
Browse files Browse the repository at this point in the history
* Add migration
* Related schema update
* Add checkbox to proposal form

Similar to the previous commit, this will need additional
modifications for the data to be displayed.
  • Loading branch information
genehack committed Jun 14, 2017
1 parent 213c798 commit 951f9e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/views/proposal/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
= f.input :diversity, as: :boolean, label: 'I identify as a member of a group that is historically under-represented in technology'
= f.input :first_time, as: :boolean, label: 'This will be my first time speaking at a conference'
= f.input :require_registration, label: 'Require participants to register to your event'
%p.text-right
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20170614025428_add_first_time_to_events.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddFirstTimeToEvents < ActiveRecord::Migration
def change
add_column :events, :first_time, :boolean, default: false
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20170613224853) do
ActiveRecord::Schema.define(version: 20170614025428) do

create_table "ahoy_events", force: :cascade do |t|
t.uuid "visit_id", limit: 16
Expand Down Expand Up @@ -233,6 +233,7 @@
t.integer "program_id"
t.integer "max_attendees"
t.boolean "diversity", default: false
t.boolean "first_time", default: false
end

create_table "events_registrations", force: :cascade do |t|
Expand Down

0 comments on commit 951f9e5

Please sign in to comment.