Compare commits
2 Commits
eb2b111472
...
7962b97e3e
Author | SHA1 | Date | |
---|---|---|---|
7962b97e3e | |||
3b0702bbec |
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -3,13 +3,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
jobs:
|
jobs:
|
||||||
build-static-assets:
|
build-static-assets:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
3
.github/workflows/copyright_notice.yml
vendored
3
.github/workflows/copyright_notice.yml
vendored
@ -3,9 +3,6 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
jobs:
|
jobs:
|
||||||
copyright_notice:
|
copyright_notice:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -4,9 +4,6 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
jobs:
|
jobs:
|
||||||
unit_tests:
|
unit_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
class SerializableGuest < JSONAPI::Serializable::Resource
|
class SerializableGuest < JSONAPI::Serializable::Resource
|
||||||
type 'guest'
|
type 'guest'
|
||||||
|
|
||||||
attributes :id, :group_id, :status
|
attributes :id, :email, :group_id, :status
|
||||||
|
|
||||||
attribute :name do
|
attribute :name do
|
||||||
"#{@object.first_name} #{@object.last_name}"
|
"#{@object.first_name} #{@object.last_name}"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024 Manuel Bustillo
|
||||||
|
|
||||||
class AddNameToTablesArrangements < ActiveRecord::Migration[7.2]
|
class AddNameToTablesArrangements < ActiveRecord::Migration[7.2]
|
||||||
def change
|
def change
|
||||||
add_column :tables_arrangements, :name, :string, null: false
|
add_column :tables_arrangements, :name, :string, null: false
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# Copyright (C) 2024 Manuel Bustillo
|
|
||||||
|
|
||||||
class RemoveEmailFromGuests < ActiveRecord::Migration[7.2]
|
|
||||||
def change
|
|
||||||
remove_column :guests, :email, :string
|
|
||||||
end
|
|
||||||
end
|
|
5
db/schema.rb
generated
5
db/schema.rb
generated
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024 Manuel Bustillo
|
||||||
|
|
||||||
# This file is auto-generated from the current state of the database. Instead
|
# 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
|
# of editing this file, please use the migrations feature of Active Record to
|
||||||
# incrementally modify your database, and then regenerate this schema definition.
|
# incrementally modify your database, and then regenerate this schema definition.
|
||||||
@ -10,7 +12,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.2].define(version: 2024_11_03_093955) do
|
ActiveRecord::Schema[7.2].define(version: 2024_11_03_072808) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
@ -40,6 +42,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_11_03_093955) do
|
|||||||
create_table "guests", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
create_table "guests", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||||
t.string "first_name"
|
t.string "first_name"
|
||||||
t.string "last_name"
|
t.string "last_name"
|
||||||
|
t.string "email"
|
||||||
t.string "phone"
|
t.string "phone"
|
||||||
t.datetime "created_at", null: false
|
t.datetime "created_at", null: false
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
|
@ -58,6 +58,7 @@ NUMBER_OF_GUESTS.times do
|
|||||||
Guest.create!(
|
Guest.create!(
|
||||||
first_name: Faker::Name.first_name,
|
first_name: Faker::Name.first_name,
|
||||||
last_name: Faker::Name.last_name,
|
last_name: Faker::Name.last_name,
|
||||||
|
email: Faker::Internet.email,
|
||||||
phone: Faker::PhoneNumber.cell_phone,
|
phone: Faker::PhoneNumber.cell_phone,
|
||||||
group: groups.sample,
|
group: groups.sample,
|
||||||
status: Guest.statuses.keys.sample
|
status: Guest.statuses.keys.sample
|
||||||
|
@ -6,6 +6,7 @@ FactoryBot.define do
|
|||||||
|
|
||||||
first_name { Faker::Name.first_name }
|
first_name { Faker::Name.first_name }
|
||||||
last_name { Faker::Name.last_name }
|
last_name { Faker::Name.last_name }
|
||||||
|
email { Faker::Internet.email }
|
||||||
phone { Faker::PhoneNumber.cell_phone }
|
phone { Faker::PhoneNumber.cell_phone }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user