diff --git a/app/controllers/v1/public/event_attendees_controller.rb b/app/controllers/v1/public/event_attendees_controller.rb index 5b57459..54c561e 100644 --- a/app/controllers/v1/public/event_attendees_controller.rb +++ b/app/controllers/v1/public/event_attendees_controller.rb @@ -38,6 +38,7 @@ def creatable_attributes role company email + locale ] end diff --git a/app/models/event_attendee.rb b/app/models/event_attendee.rb index 10660a2..ae18b9f 100644 --- a/app/models/event_attendee.rb +++ b/app/models/event_attendee.rb @@ -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 diff --git a/db/migrate/20240418113914_add_host_to_event_attendee.rb b/db/migrate/20240418113914_add_host_to_event_attendee.rb new file mode 100644 index 0000000..c900780 --- /dev/null +++ b/db/migrate/20240418113914_add_host_to_event_attendee.rb @@ -0,0 +1,5 @@ +class AddHostToEventAttendee < ActiveRecord::Migration[6.1] + def change + add_column :event_attendees, :locale, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 6e90379..8b2f4af 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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|