diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb index 5cc01367a..f36e1239d 100644 --- a/app/controllers/events_controller.rb +++ b/app/controllers/events_controller.rb @@ -315,7 +315,7 @@ def set_form_variables @event.build_primary_asset if @event.primary_asset.blank? @event.gallery_assets.build @locations = Location.order(:city, :state) - @registration_forms = Form.standalone.where(role: [ nil, "", "registration" ]).order(:name) + @registration_forms = Form.standalone.where(role: "registration").order(:name) @categories_grouped = Category .includes(:category_type) diff --git a/app/views/events/group_payments.html.erb b/app/views/events/group_payments.html.erb index 4ed7eac2e..1fa4f26db 100644 --- a/app/views/events/group_payments.html.erb +++ b/app/views/events/group_payments.html.erb @@ -27,9 +27,10 @@
<%= payment_method.presence || "—" %>
<% if submission.payments.any? %> - + <%= link_to payment_path(submission.payments.first), + class: "inline-flex items-center gap-1 rounded-full bg-green-100 px-2.5 py-0.5 text-xs font-medium text-green-800 hover:bg-green-200" do %> Paid - + <% end %> <% else %> Pending diff --git a/db/migrate/20260608184843_add_metadata_to_payments.rb b/db/migrate/20260608184843_add_metadata_to_payments.rb new file mode 100644 index 000000000..d46940277 --- /dev/null +++ b/db/migrate/20260608184843_add_metadata_to_payments.rb @@ -0,0 +1,7 @@ +class AddMetadataToPayments < ActiveRecord::Migration[8.1] + def change + unless column_exists?(:payments, :metadata) + add_column :payments, :metadata, :json + end + end +end diff --git a/db/schema.rb b/db/schema.rb index d221ed1ff..a8ea8fe31 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2026_06_08_133158) do +ActiveRecord::Schema[8.1].define(version: 2026_06_08_184843) do create_table "action_text_mentions", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t| t.bigint "action_text_rich_text_id", null: false t.datetime "created_at", null: false