Merge pull request 'Merge pull request 'Introduce endpoint to retrieve a summary of groups and invite attendance' (#122) from groups-index-stats into main' (#124) from annotate-gem into main
Reviewed-on: #124
This commit is contained in:
commit
8d746e21b9
58
.annotaterb.yml
Normal file
58
.annotaterb.yml
Normal file
@ -0,0 +1,58 @@
|
||||
---
|
||||
:position: before
|
||||
:position_in_additional_file_patterns: before
|
||||
:position_in_class: before
|
||||
:position_in_factory: before
|
||||
:position_in_fixture: before
|
||||
:position_in_routes: before
|
||||
:position_in_serializer: before
|
||||
:position_in_test: before
|
||||
:classified_sort: true
|
||||
:exclude_controllers: true
|
||||
:exclude_factories: true
|
||||
:exclude_fixtures: false
|
||||
:exclude_helpers: true
|
||||
:exclude_scaffolds: true
|
||||
:exclude_serializers: false
|
||||
:exclude_sti_subclasses: false
|
||||
:exclude_tests: true
|
||||
:force: false
|
||||
:format_markdown: false
|
||||
:format_rdoc: false
|
||||
:format_yard: false
|
||||
:frozen: false
|
||||
:ignore_model_sub_dir: false
|
||||
:ignore_unknown_models: false
|
||||
:include_version: false
|
||||
:show_check_constraints: false
|
||||
:show_complete_foreign_keys: false
|
||||
:show_foreign_keys: true
|
||||
:show_indexes: true
|
||||
:simple_indexes: false
|
||||
:sort: false
|
||||
:timestamp: false
|
||||
:trace: false
|
||||
:with_comment: true
|
||||
:with_column_comments: true
|
||||
:with_table_comments: true
|
||||
:active_admin: false
|
||||
:command:
|
||||
:debug: false
|
||||
:hide_default_column_types: ''
|
||||
:hide_limit_column_types: ''
|
||||
:ignore_columns:
|
||||
:ignore_routes:
|
||||
:models: true
|
||||
:routes: false
|
||||
:skip_on_db_migrate: false
|
||||
:target_action: :do_annotations
|
||||
:wrapper:
|
||||
:wrapper_close:
|
||||
:wrapper_open:
|
||||
:classes_default_to_s: []
|
||||
:additional_file_patterns: []
|
||||
:model_dir:
|
||||
- app/models
|
||||
:require: []
|
||||
:root_dir:
|
||||
- ''
|
1
Gemfile
1
Gemfile
@ -22,6 +22,7 @@ gem 'react-rails'
|
||||
gem 'rubytree'
|
||||
|
||||
group :development, :test do
|
||||
gem 'annotaterb'
|
||||
gem 'debug', platforms: %i[mri windows]
|
||||
gem 'factory_bot_rails'
|
||||
gem 'license_finder'
|
||||
|
@ -72,6 +72,7 @@ GEM
|
||||
securerandom (>= 0.3)
|
||||
tzinfo (~> 2.0, >= 2.0.5)
|
||||
uri (>= 0.13.1)
|
||||
annotaterb (4.13.0)
|
||||
ast (2.4.2)
|
||||
babel-source (5.8.35)
|
||||
babel-transpiler (0.7.0)
|
||||
@ -341,6 +342,7 @@ PLATFORMS
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
annotaterb
|
||||
bootsnap
|
||||
chroma
|
||||
csv
|
||||
|
@ -1,4 +1,15 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: expenses
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# amount :decimal(, )
|
||||
# name :string
|
||||
# pricing_type :enum default("fixed"), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
class Expense < ApplicationRecord
|
||||
end
|
||||
|
@ -1,5 +1,27 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: groups
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# color :string
|
||||
# icon :string
|
||||
# name :string not null
|
||||
# order :integer default(1), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# parent_id :uuid
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_groups_on_name (name) UNIQUE
|
||||
# index_groups_on_parent_id (parent_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
# fk_rails_... (parent_id => groups.id)
|
||||
#
|
||||
class Group < ApplicationRecord
|
||||
validates :name, uniqueness: true
|
||||
validates :name, :order, presence: true
|
||||
|
@ -1,5 +1,25 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: guests
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# name :string
|
||||
# phone :string
|
||||
# status :integer default("considered")
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# group_id :uuid not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_guests_on_group_id (group_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
# fk_rails_... (group_id => groups.id)
|
||||
#
|
||||
class Guest < ApplicationRecord
|
||||
belongs_to :group
|
||||
|
||||
|
@ -1,5 +1,26 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: seats
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# table_number :integer
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# guest_id :uuid not null
|
||||
# tables_arrangement_id :uuid not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
# index_seats_on_guest_id (guest_id)
|
||||
# index_seats_on_tables_arrangement_id (tables_arrangement_id)
|
||||
#
|
||||
# Foreign Keys
|
||||
#
|
||||
# fk_rails_... (guest_id => guests.id)
|
||||
# fk_rails_... (tables_arrangement_id => tables_arrangements.id) ON DELETE => cascade
|
||||
#
|
||||
class Seat < ApplicationRecord
|
||||
belongs_to :guest
|
||||
belongs_to :table_arrangement
|
||||
|
@ -1,5 +1,15 @@
|
||||
# Copyright (C) 2024 Manuel Bustillo
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: tables_arrangements
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# discomfort :integer
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
class TablesArrangement < ApplicationRecord
|
||||
has_many :seats
|
||||
has_many :guests, through: :seats
|
||||
|
8
lib/tasks/annotate_rb.rake
Normal file
8
lib/tasks/annotate_rb.rake
Normal file
@ -0,0 +1,8 @@
|
||||
# This rake task was added by annotate_rb gem.
|
||||
|
||||
# Can set `ANNOTATERB_SKIP_ON_DB_TASKS` to be anything to skip this
|
||||
if Rails.env.development? && ENV["ANNOTATERB_SKIP_ON_DB_TASKS"].nil?
|
||||
require "annotate_rb"
|
||||
|
||||
AnnotateRb::Core.load_rake_tasks
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user