active_cached_resource 0.0.1.pre → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/LICENSE +21 -0
- data/lib/active_cached_resource/caching.rb +104 -1
- data/lib/active_cached_resource/configuration.rb +22 -1
- data/lib/active_cached_resource/logger.rb +14 -0
- data/lib/active_cached_resource/model.rb +18 -0
- data/lib/active_cached_resource/version.rb +1 -8
- data/lib/activeresource/lib/active_resource/collection.rb +14 -1
- data/lib/activeresource/lib/active_resource/railtie.rb +2 -2
- data/lib/activeresource/lib/active_resource.rb +1 -1
- metadata +5 -401
- data/.rspec +0 -3
- data/.rubocop.yml +0 -22
- data/.standard.yml +0 -2
- data/Rakefile +0 -21
- data/example/consumer/.dockerignore +0 -41
- data/example/consumer/.gitattributes +0 -9
- data/example/consumer/.gitignore +0 -36
- data/example/consumer/.kamal/hooks/docker-setup.sample +0 -3
- data/example/consumer/.kamal/hooks/post-deploy.sample +0 -14
- data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/hooks/pre-build.sample +0 -51
- data/example/consumer/.kamal/hooks/pre-connect.sample +0 -47
- data/example/consumer/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/consumer/.kamal/secrets +0 -17
- data/example/consumer/Dockerfile +0 -65
- data/example/consumer/Gemfile +0 -17
- data/example/consumer/Rakefile +0 -6
- data/example/consumer/app/controllers/application_controller.rb +0 -2
- data/example/consumer/app/controllers/concerns/.keep +0 -0
- data/example/consumer/app/jobs/application_job.rb +0 -7
- data/example/consumer/app/mailers/application_mailer.rb +0 -4
- data/example/consumer/app/models/application_record.rb +0 -3
- data/example/consumer/app/models/concerns/.keep +0 -0
- data/example/consumer/app/models/person.rb +0 -9
- data/example/consumer/app/views/layouts/mailer.html.erb +0 -13
- data/example/consumer/app/views/layouts/mailer.text.erb +0 -1
- data/example/consumer/bin/brakeman +0 -7
- data/example/consumer/bin/bundle +0 -109
- data/example/consumer/bin/dev +0 -2
- data/example/consumer/bin/docker-entrypoint +0 -14
- data/example/consumer/bin/jobs +0 -6
- data/example/consumer/bin/kamal +0 -27
- data/example/consumer/bin/rails +0 -4
- data/example/consumer/bin/rake +0 -4
- data/example/consumer/bin/rubocop +0 -8
- data/example/consumer/bin/setup +0 -34
- data/example/consumer/bin/thrust +0 -5
- data/example/consumer/config/application.rb +0 -20
- data/example/consumer/config/boot.rb +0 -3
- data/example/consumer/config/cache.yml +0 -16
- data/example/consumer/config/credentials.yml.enc +0 -1
- data/example/consumer/config/database.yml +0 -14
- data/example/consumer/config/deploy.yml +0 -116
- data/example/consumer/config/environment.rb +0 -5
- data/example/consumer/config/environments/development.rb +0 -64
- data/example/consumer/config/environments/production.rb +0 -85
- data/example/consumer/config/environments/test.rb +0 -50
- data/example/consumer/config/initializers/cors.rb +0 -16
- data/example/consumer/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/consumer/config/initializers/inflections.rb +0 -16
- data/example/consumer/config/locales/en.yml +0 -31
- data/example/consumer/config/puma.rb +0 -41
- data/example/consumer/config/queue.yml +0 -18
- data/example/consumer/config/recurring.yml +0 -10
- data/example/consumer/config/routes.rb +0 -10
- data/example/consumer/config.ru +0 -6
- data/example/consumer/db/cache_schema.rb +0 -14
- data/example/consumer/db/queue_schema.rb +0 -129
- data/example/consumer/db/seeds.rb +0 -0
- data/example/consumer/lib/tasks/.keep +0 -0
- data/example/consumer/log/.keep +0 -0
- data/example/consumer/public/robots.txt +0 -1
- data/example/consumer/script/.keep +0 -0
- data/example/consumer/storage/.keep +0 -0
- data/example/consumer/tmp/.keep +0 -0
- data/example/consumer/tmp/cache/.keep +0 -0
- data/example/consumer/tmp/pids/.keep +0 -0
- data/example/consumer/tmp/storage/.keep +0 -0
- data/example/consumer/vendor/.keep +0 -0
- data/example/provider/.dockerignore +0 -41
- data/example/provider/.gitattributes +0 -9
- data/example/provider/.gitignore +0 -32
- data/example/provider/.kamal/hooks/docker-setup.sample +0 -3
- data/example/provider/.kamal/hooks/post-deploy.sample +0 -14
- data/example/provider/.kamal/hooks/post-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/hooks/pre-build.sample +0 -51
- data/example/provider/.kamal/hooks/pre-connect.sample +0 -47
- data/example/provider/.kamal/hooks/pre-deploy.sample +0 -109
- data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +0 -3
- data/example/provider/.kamal/secrets +0 -17
- data/example/provider/Dockerfile +0 -65
- data/example/provider/Gemfile +0 -14
- data/example/provider/Rakefile +0 -6
- data/example/provider/app/controllers/application_controller.rb +0 -2
- data/example/provider/app/controllers/concerns/.keep +0 -0
- data/example/provider/app/controllers/people_controller.rb +0 -68
- data/example/provider/app/jobs/application_job.rb +0 -7
- data/example/provider/app/mailers/application_mailer.rb +0 -4
- data/example/provider/app/models/address.rb +0 -3
- data/example/provider/app/models/application_record.rb +0 -3
- data/example/provider/app/models/company.rb +0 -3
- data/example/provider/app/models/concerns/.keep +0 -0
- data/example/provider/app/models/person.rb +0 -6
- data/example/provider/app/views/layouts/mailer.html.erb +0 -13
- data/example/provider/app/views/layouts/mailer.text.erb +0 -1
- data/example/provider/bin/brakeman +0 -7
- data/example/provider/bin/bundle +0 -109
- data/example/provider/bin/dev +0 -2
- data/example/provider/bin/docker-entrypoint +0 -14
- data/example/provider/bin/jobs +0 -6
- data/example/provider/bin/kamal +0 -27
- data/example/provider/bin/rails +0 -4
- data/example/provider/bin/rake +0 -4
- data/example/provider/bin/rubocop +0 -8
- data/example/provider/bin/setup +0 -34
- data/example/provider/bin/thrust +0 -5
- data/example/provider/config/application.rb +0 -44
- data/example/provider/config/boot.rb +0 -3
- data/example/provider/config/cache.yml +0 -16
- data/example/provider/config/credentials.yml.enc +0 -1
- data/example/provider/config/database.yml +0 -20
- data/example/provider/config/deploy.yml +0 -116
- data/example/provider/config/environment.rb +0 -5
- data/example/provider/config/environments/development.rb +0 -64
- data/example/provider/config/environments/production.rb +0 -85
- data/example/provider/config/environments/test.rb +0 -50
- data/example/provider/config/initializers/cors.rb +0 -16
- data/example/provider/config/initializers/filter_parameter_logging.rb +0 -8
- data/example/provider/config/initializers/inflections.rb +0 -16
- data/example/provider/config/locales/en.yml +0 -31
- data/example/provider/config/puma.rb +0 -41
- data/example/provider/config/queue.yml +0 -18
- data/example/provider/config/recurring.yml +0 -10
- data/example/provider/config/routes.rb +0 -4
- data/example/provider/config.ru +0 -6
- data/example/provider/db/cache_schema.rb +0 -14
- data/example/provider/db/migrate/20241202183937_create_people.rb +0 -11
- data/example/provider/db/migrate/20241202183955_create_addresses.rb +0 -13
- data/example/provider/db/migrate/20241202184017_create_companies.rb +0 -14
- data/example/provider/db/queue_schema.rb +0 -129
- data/example/provider/db/schema.rb +0 -47
- data/example/provider/db/seeds.rb +0 -18
- data/example/provider/lib/tasks/.keep +0 -0
- data/example/provider/log/.keep +0 -0
- data/example/provider/public/robots.txt +0 -1
- data/example/provider/script/.keep +0 -0
- data/example/provider/storage/.keep +0 -0
- data/example/provider/tmp/.keep +0 -0
- data/example/provider/tmp/pids/.keep +0 -0
- data/example/provider/tmp/storage/.keep +0 -0
- data/example/provider/vendor/.keep +0 -0
- data/lib/activeresource/.gitignore +0 -15
- data/lib/activeresource/examples/performance.rb +0 -72
- data/lib/activeresource/test/abstract_unit.rb +0 -153
- data/lib/activeresource/test/cases/active_job_serializer_test.rb +0 -53
- data/lib/activeresource/test/cases/association_test.rb +0 -104
- data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +0 -42
- data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +0 -28
- data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +0 -28
- data/lib/activeresource/test/cases/authorization_test.rb +0 -276
- data/lib/activeresource/test/cases/base/custom_methods_test.rb +0 -155
- data/lib/activeresource/test/cases/base/equality_test.rb +0 -53
- data/lib/activeresource/test/cases/base/load_test.rb +0 -249
- data/lib/activeresource/test/cases/base/schema_test.rb +0 -428
- data/lib/activeresource/test/cases/base_errors_test.rb +0 -129
- data/lib/activeresource/test/cases/base_test.rb +0 -1622
- data/lib/activeresource/test/cases/callbacks_test.rb +0 -155
- data/lib/activeresource/test/cases/collection_test.rb +0 -172
- data/lib/activeresource/test/cases/connection_test.rb +0 -357
- data/lib/activeresource/test/cases/finder_test.rb +0 -217
- data/lib/activeresource/test/cases/format_test.rb +0 -137
- data/lib/activeresource/test/cases/http_mock_test.rb +0 -213
- data/lib/activeresource/test/cases/inheritence_test.rb +0 -19
- data/lib/activeresource/test/cases/inheriting_hash_test.rb +0 -25
- data/lib/activeresource/test/cases/log_subscriber_test.rb +0 -63
- data/lib/activeresource/test/cases/reflection_test.rb +0 -65
- data/lib/activeresource/test/cases/validations_test.rb +0 -78
- data/lib/activeresource/test/fixtures/address.rb +0 -20
- data/lib/activeresource/test/fixtures/beast.rb +0 -16
- data/lib/activeresource/test/fixtures/comment.rb +0 -5
- data/lib/activeresource/test/fixtures/customer.rb +0 -5
- data/lib/activeresource/test/fixtures/inventory.rb +0 -14
- data/lib/activeresource/test/fixtures/person.rb +0 -15
- data/lib/activeresource/test/fixtures/pet.rb +0 -6
- data/lib/activeresource/test/fixtures/post.rb +0 -5
- data/lib/activeresource/test/fixtures/product.rb +0 -11
- data/lib/activeresource/test/fixtures/project.rb +0 -19
- data/lib/activeresource/test/fixtures/proxy.rb +0 -6
- data/lib/activeresource/test/fixtures/sound.rb +0 -11
- data/lib/activeresource/test/fixtures/street_address.rb +0 -6
- data/lib/activeresource/test/fixtures/subscription_plan.rb +0 -7
- data/lib/activeresource/test/fixtures/weather.rb +0 -21
- data/lib/activeresource/test/setter_trap.rb +0 -28
- data/lib/activeresource/test/singleton_test.rb +0 -138
- data/lib/activeresource/test/threadsafe_attributes_test.rb +0 -91
- data/sorbet/config +0 -4
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activemodel.rbi +0 -89
- data/sorbet/rbi/annotations/activesupport.rbi +0 -457
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/dsl/.gitattributes +0 -1
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -21
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actioncable@8.0.0.rbi +0 -252
- data/sorbet/rbi/gems/actionmailbox@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionmailer@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionpack@8.0.0.rbi +0 -20909
- data/sorbet/rbi/gems/actiontext@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/actionview@8.0.0.rbi +0 -16207
- data/sorbet/rbi/gems/activejob@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +0 -166
- data/sorbet/rbi/gems/activemodel@8.0.0.rbi +0 -6857
- data/sorbet/rbi/gems/activerecord@8.0.0.rbi +0 -42896
- data/sorbet/rbi/gems/activeresource@6.1.4.rbi +0 -3944
- data/sorbet/rbi/gems/activestorage@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/activesupport@8.0.0.rbi +0 -21251
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
- data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +0 -78
- data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -9
- data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3607
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
- data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +0 -11645
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -623
- data/sorbet/rbi/gems/date@3.4.0.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -1131
- data/sorbet/rbi/gems/docile@1.4.1.rbi +0 -377
- data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -150
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +0 -9
- data/sorbet/rbi/gems/json@2.8.2.rbi +0 -1901
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
- data/sorbet/rbi/gems/logger@1.6.1.rbi +0 -920
- data/sorbet/rbi/gems/loofah@2.23.1.rbi +0 -1081
- data/sorbet/rbi/gems/mail@2.8.1.rbi +0 -9
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +0 -9
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +0 -304
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +0 -9
- data/sorbet/rbi/gems/minitest@5.25.2.rbi +0 -1547
- data/sorbet/rbi/gems/net-imap@0.5.1.rbi +0 -9
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +0 -9
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +0 -292
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +0 -9
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +0 -7311
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +0 -291
- data/sorbet/rbi/gems/parser@3.3.6.0.rbi +0 -5519
- data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
- data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1151
- data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10076
- data/sorbet/rbi/gems/psych@5.2.0.rbi +0 -1785
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +0 -727
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +0 -747
- data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4905
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +0 -230
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +0 -758
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +0 -785
- data/sorbet/rbi/gems/rails@8.0.0.rbi +0 -9
- data/sorbet/rbi/gems/railties@8.0.0.rbi +0 -6287
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -3091
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
- data/sorbet/rbi/gems/rdoc@6.8.1.rbi +0 -12572
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +0 -3772
- data/sorbet/rbi/gems/reline@0.5.12.rbi +0 -2416
- data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4858
- data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +0 -11287
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +0 -8183
- data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +0 -5341
- data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +0 -83
- data/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi +0 -7303
- data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +0 -9
- data/sorbet/rbi/gems/rubocop@1.65.1.rbi +0 -58170
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
- data/sorbet/rbi/gems/securerandom@0.3.2.rbi +0 -395
- data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +0 -225
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +0 -9
- data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +0 -9
- data/sorbet/rbi/gems/standard@1.40.0.rbi +0 -929
- data/sorbet/rbi/gems/stringio@3.1.2.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +0 -3597
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/timeout@0.4.2.rbi +0 -151
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +0 -66
- data/sorbet/rbi/gems/uri@1.0.2.rbi +0 -2377
- data/sorbet/rbi/gems/useragent@0.16.10.rbi +0 -9
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +0 -9
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -9
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18504
- data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +0 -9
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -12
@@ -1,116 +0,0 @@
|
|
1
|
-
# Name of your application. Used to uniquely configure containers.
|
2
|
-
service: consumer
|
3
|
-
|
4
|
-
# Name of the container image.
|
5
|
-
image: your-user/consumer
|
6
|
-
|
7
|
-
# Deploy to these servers.
|
8
|
-
servers:
|
9
|
-
web:
|
10
|
-
- 192.168.0.1
|
11
|
-
# job:
|
12
|
-
# hosts:
|
13
|
-
# - 192.168.0.1
|
14
|
-
# cmd: bin/jobs
|
15
|
-
|
16
|
-
# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
|
17
|
-
# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
|
18
|
-
#
|
19
|
-
# Note: If using Cloudflare, set encryption mode in SSL/TLS setting to "Full" to enable CF-to-app encryption.
|
20
|
-
proxy:
|
21
|
-
ssl: true
|
22
|
-
host: app.example.com
|
23
|
-
|
24
|
-
# Credentials for your image host.
|
25
|
-
registry:
|
26
|
-
# Specify the registry server, if you're not using Docker Hub
|
27
|
-
# server: registry.digitalocean.com / ghcr.io / ...
|
28
|
-
username: your-user
|
29
|
-
|
30
|
-
# Always use an access token rather than real password when possible.
|
31
|
-
password:
|
32
|
-
- KAMAL_REGISTRY_PASSWORD
|
33
|
-
|
34
|
-
# Inject ENV variables into containers (secrets come from .kamal/secrets).
|
35
|
-
env:
|
36
|
-
secret:
|
37
|
-
- RAILS_MASTER_KEY
|
38
|
-
clear:
|
39
|
-
# Run the Solid Queue Supervisor inside the web server's Puma process to do jobs.
|
40
|
-
# When you start using multiple servers, you should split out job processing to a dedicated machine.
|
41
|
-
SOLID_QUEUE_IN_PUMA: true
|
42
|
-
|
43
|
-
# Set number of processes dedicated to Solid Queue (default: 1)
|
44
|
-
# JOB_CONCURRENCY: 3
|
45
|
-
|
46
|
-
# Set number of cores available to the application on each server (default: 1).
|
47
|
-
# WEB_CONCURRENCY: 2
|
48
|
-
|
49
|
-
# Match this to any external database server to configure Active Record correctly
|
50
|
-
# Use consumer-db for a db accessory server on same machine via local kamal docker network.
|
51
|
-
# DB_HOST: 192.168.0.2
|
52
|
-
|
53
|
-
# Log everything from Rails
|
54
|
-
# RAILS_LOG_LEVEL: debug
|
55
|
-
|
56
|
-
# Aliases are triggered with "bin/kamal <alias>". You can overwrite arguments on invocation:
|
57
|
-
# "bin/kamal logs -r job" will tail logs from the first server in the job section.
|
58
|
-
aliases:
|
59
|
-
console: app exec --interactive --reuse "bin/rails console"
|
60
|
-
shell: app exec --interactive --reuse "bash"
|
61
|
-
logs: app logs -f
|
62
|
-
dbc: app exec --interactive --reuse "bin/rails dbconsole"
|
63
|
-
|
64
|
-
|
65
|
-
# Use a persistent storage volume for sqlite database files and local Active Storage files.
|
66
|
-
# Recommended to change this to a mounted volume path that is backed up off server.
|
67
|
-
volumes:
|
68
|
-
- "consumer_storage:/rails/storage"
|
69
|
-
|
70
|
-
|
71
|
-
# Bridge fingerprinted assets, like JS and CSS, between versions to avoid
|
72
|
-
# hitting 404 on in-flight requests. Combines all files from new and old
|
73
|
-
# version inside the asset_path.
|
74
|
-
asset_path: /rails/public/assets
|
75
|
-
|
76
|
-
# Configure the image builder.
|
77
|
-
builder:
|
78
|
-
arch: amd64
|
79
|
-
|
80
|
-
# # Build image via remote server (useful for faster amd64 builds on arm64 computers)
|
81
|
-
# remote: ssh://docker@docker-builder-server
|
82
|
-
#
|
83
|
-
# # Pass arguments and secrets to the Docker build process
|
84
|
-
# args:
|
85
|
-
# RUBY_VERSION: ruby-3.2.2
|
86
|
-
# secrets:
|
87
|
-
# - GITHUB_TOKEN
|
88
|
-
# - RAILS_MASTER_KEY
|
89
|
-
|
90
|
-
# Use a different ssh user than root
|
91
|
-
# ssh:
|
92
|
-
# user: app
|
93
|
-
|
94
|
-
# Use accessory services (secrets come from .kamal/secrets).
|
95
|
-
# accessories:
|
96
|
-
# db:
|
97
|
-
# image: mysql:8.0
|
98
|
-
# host: 192.168.0.2
|
99
|
-
# # Change to 3306 to expose port to the world instead of just local network.
|
100
|
-
# port: "127.0.0.1:3306:3306"
|
101
|
-
# env:
|
102
|
-
# clear:
|
103
|
-
# MYSQL_ROOT_HOST: '%'
|
104
|
-
# secret:
|
105
|
-
# - MYSQL_ROOT_PASSWORD
|
106
|
-
# files:
|
107
|
-
# - config/mysql/production.cnf:/etc/mysql/my.cnf
|
108
|
-
# - db/production.sql:/docker-entrypoint-initdb.d/setup.sql
|
109
|
-
# directories:
|
110
|
-
# - data:/var/lib/mysql
|
111
|
-
# redis:
|
112
|
-
# image: redis:7.0
|
113
|
-
# host: 192.168.0.2
|
114
|
-
# port: 6379
|
115
|
-
# directories:
|
116
|
-
# - data:/data
|
@@ -1,64 +0,0 @@
|
|
1
|
-
require "active_support/core_ext/integer/time"
|
2
|
-
|
3
|
-
Rails.application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
-
|
6
|
-
# Make code changes take effect immediately without server restart.
|
7
|
-
config.enable_reloading = true
|
8
|
-
|
9
|
-
# Do not eager load code on boot.
|
10
|
-
config.eager_load = false
|
11
|
-
|
12
|
-
# Show full error reports.
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
|
15
|
-
# Enable server timing.
|
16
|
-
config.server_timing = true
|
17
|
-
|
18
|
-
# Enable/disable Action Controller caching. By default Action Controller caching is disabled.
|
19
|
-
# Run rails dev:cache to toggle Action Controller caching.
|
20
|
-
if Rails.root.join("tmp/caching-dev.txt").exist?
|
21
|
-
config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
|
22
|
-
else
|
23
|
-
config.action_controller.perform_caching = false
|
24
|
-
end
|
25
|
-
|
26
|
-
# Change to :null_store to avoid any caching.
|
27
|
-
config.cache_store = :memory_store
|
28
|
-
|
29
|
-
# Don't care if the mailer can't send.
|
30
|
-
config.action_mailer.raise_delivery_errors = false
|
31
|
-
|
32
|
-
# Make template changes take effect immediately.
|
33
|
-
config.action_mailer.perform_caching = false
|
34
|
-
|
35
|
-
# Set localhost to be used by links generated in mailer templates.
|
36
|
-
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
37
|
-
|
38
|
-
# Print deprecation notices to the Rails logger.
|
39
|
-
config.active_support.deprecation = :log
|
40
|
-
|
41
|
-
# Raise an error on page load if there are pending migrations.
|
42
|
-
config.active_record.migration_error = :page_load
|
43
|
-
|
44
|
-
# Highlight code that triggered database queries in logs.
|
45
|
-
config.active_record.verbose_query_logs = true
|
46
|
-
|
47
|
-
# Append comments with runtime information tags to SQL queries in logs.
|
48
|
-
config.active_record.query_log_tags_enabled = true
|
49
|
-
|
50
|
-
# Highlight code that enqueued background job in logs.
|
51
|
-
config.active_job.verbose_enqueue_logs = true
|
52
|
-
|
53
|
-
# Raises error for missing translations.
|
54
|
-
# config.i18n.raise_on_missing_translations = true
|
55
|
-
|
56
|
-
# Annotate rendered view with file names.
|
57
|
-
config.action_view.annotate_rendered_view_with_filenames = true
|
58
|
-
|
59
|
-
# Raise error when a before_action's only/except options reference missing actions.
|
60
|
-
config.action_controller.raise_on_missing_callback_actions = true
|
61
|
-
|
62
|
-
# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
|
63
|
-
# config.generators.apply_rubocop_autocorrect_after_generate!
|
64
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
require "active_support/core_ext/integer/time"
|
2
|
-
|
3
|
-
Rails.application.configure do
|
4
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
5
|
-
|
6
|
-
# Code is not reloaded between requests.
|
7
|
-
config.enable_reloading = false
|
8
|
-
|
9
|
-
# Eager load code on boot for better performance and memory savings (ignored by Rake tasks).
|
10
|
-
config.eager_load = true
|
11
|
-
|
12
|
-
# Full error reports are disabled.
|
13
|
-
config.consider_all_requests_local = false
|
14
|
-
|
15
|
-
# Cache assets for far-future expiry since they are all digest stamped.
|
16
|
-
config.public_file_server.headers = { "cache-control" => "public, max-age=#{1.year.to_i}" }
|
17
|
-
|
18
|
-
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
19
|
-
# config.asset_host = "http://assets.example.com"
|
20
|
-
|
21
|
-
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
22
|
-
config.assume_ssl = true
|
23
|
-
|
24
|
-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
25
|
-
config.force_ssl = true
|
26
|
-
|
27
|
-
# Skip http-to-https redirect for the default health check endpoint.
|
28
|
-
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
|
29
|
-
|
30
|
-
# Log to STDOUT with the current request id as a default log tag.
|
31
|
-
config.log_tags = [ :request_id ]
|
32
|
-
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)
|
33
|
-
|
34
|
-
# Change to "debug" to log everything (including potentially personally-identifiable information!)
|
35
|
-
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
36
|
-
|
37
|
-
# Prevent health checks from clogging up the logs.
|
38
|
-
config.silence_healthcheck_path = "/up"
|
39
|
-
|
40
|
-
# Don't log any deprecations.
|
41
|
-
config.active_support.report_deprecations = false
|
42
|
-
|
43
|
-
# Replace the default in-process memory cache store with a durable alternative.
|
44
|
-
config.cache_store = :solid_cache_store
|
45
|
-
|
46
|
-
# Replace the default in-process and non-durable queuing backend for Active Job.
|
47
|
-
config.active_job.queue_adapter = :solid_queue
|
48
|
-
config.solid_queue.connects_to = { database: { writing: :queue } }
|
49
|
-
|
50
|
-
|
51
|
-
# Ignore bad email addresses and do not raise email delivery errors.
|
52
|
-
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
53
|
-
# config.action_mailer.raise_delivery_errors = false
|
54
|
-
|
55
|
-
# Set host to be used by links generated in mailer templates.
|
56
|
-
config.action_mailer.default_url_options = { host: "example.com" }
|
57
|
-
|
58
|
-
# Specify outgoing SMTP server. Remember to add smtp/* credentials via rails credentials:edit.
|
59
|
-
# config.action_mailer.smtp_settings = {
|
60
|
-
# user_name: Rails.application.credentials.dig(:smtp, :user_name),
|
61
|
-
# password: Rails.application.credentials.dig(:smtp, :password),
|
62
|
-
# address: "smtp.example.com",
|
63
|
-
# port: 587,
|
64
|
-
# authentication: :plain
|
65
|
-
# }
|
66
|
-
|
67
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
68
|
-
# the I18n.default_locale when a translation cannot be found).
|
69
|
-
config.i18n.fallbacks = true
|
70
|
-
|
71
|
-
# Do not dump schema after migrations.
|
72
|
-
config.active_record.dump_schema_after_migration = false
|
73
|
-
|
74
|
-
# Only use :id for inspections in production.
|
75
|
-
config.active_record.attributes_for_inspect = [ :id ]
|
76
|
-
|
77
|
-
# Enable DNS rebinding protection and other `Host` header attacks.
|
78
|
-
# config.hosts = [
|
79
|
-
# "example.com", # Allow requests from example.com
|
80
|
-
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
81
|
-
# ]
|
82
|
-
#
|
83
|
-
# Skip DNS rebinding protection for the default health check endpoint.
|
84
|
-
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
85
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# The test environment is used exclusively to run your application's
|
2
|
-
# test suite. You never need to work with it otherwise. Remember that
|
3
|
-
# your test database is "scratch space" for the test suite and is wiped
|
4
|
-
# and recreated between test runs. Don't rely on the data there!
|
5
|
-
|
6
|
-
Rails.application.configure do
|
7
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
8
|
-
|
9
|
-
# While tests run files are not watched, reloading is not necessary.
|
10
|
-
config.enable_reloading = false
|
11
|
-
|
12
|
-
# Eager loading loads your entire application. When running a single test locally,
|
13
|
-
# this is usually not necessary, and can slow down your test suite. However, it's
|
14
|
-
# recommended that you enable it in continuous integration systems to ensure eager
|
15
|
-
# loading is working properly before deploying your code.
|
16
|
-
config.eager_load = ENV["CI"].present?
|
17
|
-
|
18
|
-
# Configure public file server for tests with cache-control for performance.
|
19
|
-
config.public_file_server.headers = { "cache-control" => "public, max-age=3600" }
|
20
|
-
|
21
|
-
# Show full error reports.
|
22
|
-
config.consider_all_requests_local = true
|
23
|
-
config.cache_store = :null_store
|
24
|
-
|
25
|
-
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
26
|
-
config.action_dispatch.show_exceptions = :rescuable
|
27
|
-
|
28
|
-
# Disable request forgery protection in test environment.
|
29
|
-
config.action_controller.allow_forgery_protection = false
|
30
|
-
|
31
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
32
|
-
# The :test delivery method accumulates sent emails in the
|
33
|
-
# ActionMailer::Base.deliveries array.
|
34
|
-
config.action_mailer.delivery_method = :test
|
35
|
-
|
36
|
-
# Set host to be used by links generated in mailer templates.
|
37
|
-
config.action_mailer.default_url_options = { host: "example.com" }
|
38
|
-
|
39
|
-
# Print deprecation notices to the stderr.
|
40
|
-
config.active_support.deprecation = :stderr
|
41
|
-
|
42
|
-
# Raises error for missing translations.
|
43
|
-
# config.i18n.raise_on_missing_translations = true
|
44
|
-
|
45
|
-
# Annotate rendered view with file names.
|
46
|
-
# config.action_view.annotate_rendered_view_with_filenames = true
|
47
|
-
|
48
|
-
# Raise error when a before_action's only/except options reference missing actions.
|
49
|
-
config.action_controller.raise_on_missing_callback_actions = true
|
50
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Avoid CORS issues when API is called from the frontend app.
|
4
|
-
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin Ajax requests.
|
5
|
-
|
6
|
-
# Read more: https://github.com/cyu/rack-cors
|
7
|
-
|
8
|
-
# Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
9
|
-
# allow do
|
10
|
-
# origins "example.com"
|
11
|
-
#
|
12
|
-
# resource "*",
|
13
|
-
# headers: :any,
|
14
|
-
# methods: [:get, :post, :put, :patch, :delete, :options, :head]
|
15
|
-
# end
|
16
|
-
# end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
4
|
-
# Use this to limit dissemination of sensitive information.
|
5
|
-
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
6
|
-
Rails.application.config.filter_parameters += [
|
7
|
-
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
|
8
|
-
]
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format. Inflections
|
4
|
-
# are locale specific, and you may define rules for as many different
|
5
|
-
# locales as you wish. All of these examples are active by default:
|
6
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i, "\\1en"
|
8
|
-
# inflect.singular /^(ox)en/i, "\\1"
|
9
|
-
# inflect.irregular "person", "people"
|
10
|
-
# inflect.uncountable %w( fish sheep )
|
11
|
-
# end
|
12
|
-
|
13
|
-
# These inflection rules are supported but not enabled by default:
|
14
|
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym "RESTful"
|
16
|
-
# end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# Files in the config/locales directory are used for internationalization and
|
2
|
-
# are automatically loaded by Rails. If you want to use locales other than
|
3
|
-
# English, add the necessary files in this directory.
|
4
|
-
#
|
5
|
-
# To use the locales, use `I18n.t`:
|
6
|
-
#
|
7
|
-
# I18n.t "hello"
|
8
|
-
#
|
9
|
-
# In views, this is aliased to just `t`:
|
10
|
-
#
|
11
|
-
# <%= t("hello") %>
|
12
|
-
#
|
13
|
-
# To use a different locale, set it with `I18n.locale`:
|
14
|
-
#
|
15
|
-
# I18n.locale = :es
|
16
|
-
#
|
17
|
-
# This would use the information in config/locales/es.yml.
|
18
|
-
#
|
19
|
-
# To learn more about the API, please read the Rails Internationalization guide
|
20
|
-
# at https://guides.rubyonrails.org/i18n.html.
|
21
|
-
#
|
22
|
-
# Be aware that YAML interprets the following case-insensitive strings as
|
23
|
-
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
|
24
|
-
# must be quoted to be interpreted as strings. For example:
|
25
|
-
#
|
26
|
-
# en:
|
27
|
-
# "yes": yup
|
28
|
-
# enabled: "ON"
|
29
|
-
|
30
|
-
en:
|
31
|
-
hello: "Hello world"
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# This configuration file will be evaluated by Puma. The top-level methods that
|
2
|
-
# are invoked here are part of Puma's configuration DSL. For more information
|
3
|
-
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
|
4
|
-
#
|
5
|
-
# Puma starts a configurable number of processes (workers) and each process
|
6
|
-
# serves each request in a thread from an internal thread pool.
|
7
|
-
#
|
8
|
-
# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
|
9
|
-
# should only set this value when you want to run 2 or more workers. The
|
10
|
-
# default is already 1.
|
11
|
-
#
|
12
|
-
# The ideal number of threads per worker depends both on how much time the
|
13
|
-
# application spends waiting for IO operations and on how much you wish to
|
14
|
-
# prioritize throughput over latency.
|
15
|
-
#
|
16
|
-
# As a rule of thumb, increasing the number of threads will increase how much
|
17
|
-
# traffic a given process can handle (throughput), but due to CRuby's
|
18
|
-
# Global VM Lock (GVL) it has diminishing returns and will degrade the
|
19
|
-
# response time (latency) of the application.
|
20
|
-
#
|
21
|
-
# The default is set to 3 threads as it's deemed a decent compromise between
|
22
|
-
# throughput and latency for the average Rails application.
|
23
|
-
#
|
24
|
-
# Any libraries that use a connection pool or another resource pool should
|
25
|
-
# be configured to provide at least as many connections as the number of
|
26
|
-
# threads. This includes Active Record's `pool` parameter in `database.yml`.
|
27
|
-
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
|
28
|
-
threads threads_count, threads_count
|
29
|
-
|
30
|
-
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
31
|
-
port ENV.fetch("PORT", 3000)
|
32
|
-
|
33
|
-
# Allow puma to be restarted by `bin/rails restart` command.
|
34
|
-
plugin :tmp_restart
|
35
|
-
|
36
|
-
# Run the Solid Queue supervisor inside of Puma for single-server deployments
|
37
|
-
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]
|
38
|
-
|
39
|
-
# Specify the PID file. Defaults to tmp/pids/server.pid in development.
|
40
|
-
# In other environments, only set the PID file if requested.
|
41
|
-
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
|
@@ -1,18 +0,0 @@
|
|
1
|
-
default: &default
|
2
|
-
dispatchers:
|
3
|
-
- polling_interval: 1
|
4
|
-
batch_size: 500
|
5
|
-
workers:
|
6
|
-
- queues: "*"
|
7
|
-
threads: 3
|
8
|
-
processes: <%= ENV.fetch("JOB_CONCURRENCY", 1) %>
|
9
|
-
polling_interval: 0.1
|
10
|
-
|
11
|
-
development:
|
12
|
-
<<: *default
|
13
|
-
|
14
|
-
test:
|
15
|
-
<<: *default
|
16
|
-
|
17
|
-
production:
|
18
|
-
<<: *default
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# production:
|
2
|
-
# periodic_cleanup:
|
3
|
-
# class: CleanSoftDeletedRecordsJob
|
4
|
-
# queue: background
|
5
|
-
# args: [ 1000, { batch_size: 500 } ]
|
6
|
-
# schedule: every hour
|
7
|
-
# periodic_command:
|
8
|
-
# command: "SoftDeletedRecord.due.delete_all"
|
9
|
-
# priority: 2
|
10
|
-
# schedule: at 5am every day
|
@@ -1,10 +0,0 @@
|
|
1
|
-
Rails.application.routes.draw do
|
2
|
-
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
3
|
-
|
4
|
-
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
5
|
-
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
6
|
-
get "up" => "rails/health#show", as: :rails_health_check
|
7
|
-
|
8
|
-
# Defines the root path route ("/")
|
9
|
-
# root "posts#index"
|
10
|
-
end
|
data/example/consumer/config.ru
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
ActiveRecord::Schema[7.2].define(version: 1) do
|
4
|
-
create_table "solid_cache_entries", force: :cascade do |t|
|
5
|
-
t.binary "key", limit: 1024, null: false
|
6
|
-
t.binary "value", limit: 536870912, null: false
|
7
|
-
t.datetime "created_at", null: false
|
8
|
-
t.integer "key_hash", limit: 8, null: false
|
9
|
-
t.integer "byte_size", limit: 4, null: false
|
10
|
-
t.index ["byte_size"], name: "index_solid_cache_entries_on_byte_size"
|
11
|
-
t.index ["key_hash", "byte_size"], name: "index_solid_cache_entries_on_key_hash_and_byte_size"
|
12
|
-
t.index ["key_hash"], name: "index_solid_cache_entries_on_key_hash", unique: true
|
13
|
-
end
|
14
|
-
end
|
@@ -1,129 +0,0 @@
|
|
1
|
-
ActiveRecord::Schema[7.1].define(version: 1) do
|
2
|
-
create_table "solid_queue_blocked_executions", force: :cascade do |t|
|
3
|
-
t.bigint "job_id", null: false
|
4
|
-
t.string "queue_name", null: false
|
5
|
-
t.integer "priority", default: 0, null: false
|
6
|
-
t.string "concurrency_key", null: false
|
7
|
-
t.datetime "expires_at", null: false
|
8
|
-
t.datetime "created_at", null: false
|
9
|
-
t.index [ "concurrency_key", "priority", "job_id" ], name: "index_solid_queue_blocked_executions_for_release"
|
10
|
-
t.index [ "expires_at", "concurrency_key" ], name: "index_solid_queue_blocked_executions_for_maintenance"
|
11
|
-
t.index [ "job_id" ], name: "index_solid_queue_blocked_executions_on_job_id", unique: true
|
12
|
-
end
|
13
|
-
|
14
|
-
create_table "solid_queue_claimed_executions", force: :cascade do |t|
|
15
|
-
t.bigint "job_id", null: false
|
16
|
-
t.bigint "process_id"
|
17
|
-
t.datetime "created_at", null: false
|
18
|
-
t.index [ "job_id" ], name: "index_solid_queue_claimed_executions_on_job_id", unique: true
|
19
|
-
t.index [ "process_id", "job_id" ], name: "index_solid_queue_claimed_executions_on_process_id_and_job_id"
|
20
|
-
end
|
21
|
-
|
22
|
-
create_table "solid_queue_failed_executions", force: :cascade do |t|
|
23
|
-
t.bigint "job_id", null: false
|
24
|
-
t.text "error"
|
25
|
-
t.datetime "created_at", null: false
|
26
|
-
t.index [ "job_id" ], name: "index_solid_queue_failed_executions_on_job_id", unique: true
|
27
|
-
end
|
28
|
-
|
29
|
-
create_table "solid_queue_jobs", force: :cascade do |t|
|
30
|
-
t.string "queue_name", null: false
|
31
|
-
t.string "class_name", null: false
|
32
|
-
t.text "arguments"
|
33
|
-
t.integer "priority", default: 0, null: false
|
34
|
-
t.string "active_job_id"
|
35
|
-
t.datetime "scheduled_at"
|
36
|
-
t.datetime "finished_at"
|
37
|
-
t.string "concurrency_key"
|
38
|
-
t.datetime "created_at", null: false
|
39
|
-
t.datetime "updated_at", null: false
|
40
|
-
t.index [ "active_job_id" ], name: "index_solid_queue_jobs_on_active_job_id"
|
41
|
-
t.index [ "class_name" ], name: "index_solid_queue_jobs_on_class_name"
|
42
|
-
t.index [ "finished_at" ], name: "index_solid_queue_jobs_on_finished_at"
|
43
|
-
t.index [ "queue_name", "finished_at" ], name: "index_solid_queue_jobs_for_filtering"
|
44
|
-
t.index [ "scheduled_at", "finished_at" ], name: "index_solid_queue_jobs_for_alerting"
|
45
|
-
end
|
46
|
-
|
47
|
-
create_table "solid_queue_pauses", force: :cascade do |t|
|
48
|
-
t.string "queue_name", null: false
|
49
|
-
t.datetime "created_at", null: false
|
50
|
-
t.index [ "queue_name" ], name: "index_solid_queue_pauses_on_queue_name", unique: true
|
51
|
-
end
|
52
|
-
|
53
|
-
create_table "solid_queue_processes", force: :cascade do |t|
|
54
|
-
t.string "kind", null: false
|
55
|
-
t.datetime "last_heartbeat_at", null: false
|
56
|
-
t.bigint "supervisor_id"
|
57
|
-
t.integer "pid", null: false
|
58
|
-
t.string "hostname"
|
59
|
-
t.text "metadata"
|
60
|
-
t.datetime "created_at", null: false
|
61
|
-
t.string "name", null: false
|
62
|
-
t.index [ "last_heartbeat_at" ], name: "index_solid_queue_processes_on_last_heartbeat_at"
|
63
|
-
t.index [ "name", "supervisor_id" ], name: "index_solid_queue_processes_on_name_and_supervisor_id", unique: true
|
64
|
-
t.index [ "supervisor_id" ], name: "index_solid_queue_processes_on_supervisor_id"
|
65
|
-
end
|
66
|
-
|
67
|
-
create_table "solid_queue_ready_executions", force: :cascade do |t|
|
68
|
-
t.bigint "job_id", null: false
|
69
|
-
t.string "queue_name", null: false
|
70
|
-
t.integer "priority", default: 0, null: false
|
71
|
-
t.datetime "created_at", null: false
|
72
|
-
t.index [ "job_id" ], name: "index_solid_queue_ready_executions_on_job_id", unique: true
|
73
|
-
t.index [ "priority", "job_id" ], name: "index_solid_queue_poll_all"
|
74
|
-
t.index [ "queue_name", "priority", "job_id" ], name: "index_solid_queue_poll_by_queue"
|
75
|
-
end
|
76
|
-
|
77
|
-
create_table "solid_queue_recurring_executions", force: :cascade do |t|
|
78
|
-
t.bigint "job_id", null: false
|
79
|
-
t.string "task_key", null: false
|
80
|
-
t.datetime "run_at", null: false
|
81
|
-
t.datetime "created_at", null: false
|
82
|
-
t.index [ "job_id" ], name: "index_solid_queue_recurring_executions_on_job_id", unique: true
|
83
|
-
t.index [ "task_key", "run_at" ], name: "index_solid_queue_recurring_executions_on_task_key_and_run_at", unique: true
|
84
|
-
end
|
85
|
-
|
86
|
-
create_table "solid_queue_recurring_tasks", force: :cascade do |t|
|
87
|
-
t.string "key", null: false
|
88
|
-
t.string "schedule", null: false
|
89
|
-
t.string "command", limit: 2048
|
90
|
-
t.string "class_name"
|
91
|
-
t.text "arguments"
|
92
|
-
t.string "queue_name"
|
93
|
-
t.integer "priority", default: 0
|
94
|
-
t.boolean "static", default: true, null: false
|
95
|
-
t.text "description"
|
96
|
-
t.datetime "created_at", null: false
|
97
|
-
t.datetime "updated_at", null: false
|
98
|
-
t.index [ "key" ], name: "index_solid_queue_recurring_tasks_on_key", unique: true
|
99
|
-
t.index [ "static" ], name: "index_solid_queue_recurring_tasks_on_static"
|
100
|
-
end
|
101
|
-
|
102
|
-
create_table "solid_queue_scheduled_executions", force: :cascade do |t|
|
103
|
-
t.bigint "job_id", null: false
|
104
|
-
t.string "queue_name", null: false
|
105
|
-
t.integer "priority", default: 0, null: false
|
106
|
-
t.datetime "scheduled_at", null: false
|
107
|
-
t.datetime "created_at", null: false
|
108
|
-
t.index [ "job_id" ], name: "index_solid_queue_scheduled_executions_on_job_id", unique: true
|
109
|
-
t.index [ "scheduled_at", "priority", "job_id" ], name: "index_solid_queue_dispatch_all"
|
110
|
-
end
|
111
|
-
|
112
|
-
create_table "solid_queue_semaphores", force: :cascade do |t|
|
113
|
-
t.string "key", null: false
|
114
|
-
t.integer "value", default: 1, null: false
|
115
|
-
t.datetime "expires_at", null: false
|
116
|
-
t.datetime "created_at", null: false
|
117
|
-
t.datetime "updated_at", null: false
|
118
|
-
t.index [ "expires_at" ], name: "index_solid_queue_semaphores_on_expires_at"
|
119
|
-
t.index [ "key", "value" ], name: "index_solid_queue_semaphores_on_key_and_value"
|
120
|
-
t.index [ "key" ], name: "index_solid_queue_semaphores_on_key", unique: true
|
121
|
-
end
|
122
|
-
|
123
|
-
add_foreign_key "solid_queue_blocked_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
124
|
-
add_foreign_key "solid_queue_claimed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
125
|
-
add_foreign_key "solid_queue_failed_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
126
|
-
add_foreign_key "solid_queue_ready_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
127
|
-
add_foreign_key "solid_queue_recurring_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
128
|
-
add_foreign_key "solid_queue_scheduled_executions", "solid_queue_jobs", column: "job_id", on_delete: :cascade
|
129
|
-
end
|
File without changes
|
File without changes
|
data/example/consumer/log/.keep
DELETED
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
File without changes
|
File without changes
|
data/example/consumer/tmp/.keep
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|