Skip to content

Commit

Permalink
Add locale to EventAttendee
Browse files Browse the repository at this point in the history
  • Loading branch information
janwerkhoven committed Apr 18, 2024
1 parent b659d2e commit 24a200b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/v1/public/event_attendees_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def creatable_attributes
role
company
email
locale
]
end

Expand Down
1 change: 1 addition & 0 deletions app/models/event_attendee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# email :string
# first_name :string
# last_name :string
# locale :string
# role :string
# created_at :datetime not null
# updated_at :datetime not null
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20240418113914_add_host_to_event_attendee.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddHostToEventAttendee < ActiveRecord::Migration[6.1]
def change
add_column :event_attendees, :locale, :string
end
end
1 change: 1 addition & 0 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@
t.string "email"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "locale"
end

create_table "events", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
Expand Down

0 comments on commit 24a200b

Please sign in to comment.