Compare commits

..

2 Commits

Author SHA1 Message Date
9b82720b7f Add copyright notice
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 4m42s
Add copyright notice / copyright_notice (pull_request) Successful in 6m43s
Run unit tests / unit_tests (pull_request) Successful in 7m24s
2024-11-11 06:46:58 +00:00
5f9b64a93b Merge first and last name and expose guest update endpoint
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 2m22s
Add copyright notice / copyright_notice (pull_request) Successful in 3m28s
Run unit tests / unit_tests (pull_request) Successful in 6m23s
2024-11-11 07:43:42 +01:00
3 changed files with 4 additions and 4 deletions

View File

@ -4,8 +4,4 @@ class ExpensesController < ApplicationController
def summary
render json: Expenses::TotalQuery.new.call
end
def index
render json: Expense.all.order(pricing_type: :asc, amount: :desc).as_json(only: %i[id name amount pricing_type])
end
end

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
class MergeGuestNames < ActiveRecord::Migration[8.0]
def change
add_column :guests, :name, :string

2
db/schema.rb generated
View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.