abizvn-general 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/serializers/abizvn/general/general_setting_lite_serializer.rb +9 -9
  3. data/app/services/abizvn/general/general_setting_service.rb +11 -11
  4. data/lib/abizvn/general/version.rb +5 -5
  5. data/spec/dummy/Rakefile +6 -0
  6. data/spec/dummy/app/assets/config/manifest.js +3 -0
  7. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  8. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  9. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  10. data/spec/dummy/app/controllers/application_controller.rb +4 -0
  11. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  12. data/spec/dummy/app/jobs/application_job.rb +7 -0
  13. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  14. data/spec/dummy/app/models/application_record.rb +3 -0
  15. data/spec/dummy/app/views/layouts/application.html.erb +22 -0
  16. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  17. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  18. data/spec/dummy/app/views/pwa/manifest.json.erb +22 -0
  19. data/spec/dummy/app/views/pwa/service-worker.js +26 -0
  20. data/spec/dummy/bin/rails +4 -0
  21. data/spec/dummy/bin/rake +4 -0
  22. data/spec/dummy/bin/rubocop +8 -0
  23. data/spec/dummy/bin/setup +37 -0
  24. data/spec/dummy/config/application.rb +42 -0
  25. data/spec/dummy/config/boot.rb +3 -0
  26. data/spec/dummy/config/cable.yml +10 -0
  27. data/spec/dummy/config/database.yml +32 -0
  28. data/spec/dummy/config/environment.rb +5 -0
  29. data/spec/dummy/config/environments/development.rb +81 -0
  30. data/spec/dummy/config/environments/production.rb +105 -0
  31. data/spec/dummy/config/environments/test.rb +67 -0
  32. data/spec/dummy/config/initializers/assets.rb +12 -0
  33. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  34. data/spec/dummy/config/initializers/filter_parameter_logging.rb +8 -0
  35. data/spec/dummy/config/initializers/inflections.rb +16 -0
  36. data/spec/dummy/config/initializers/new_framework_defaults_7_2.rb +70 -0
  37. data/spec/dummy/config/initializers/permissions_policy.rb +13 -0
  38. data/spec/dummy/config/locales/en.yml +31 -0
  39. data/spec/dummy/config/puma.rb +34 -0
  40. data/spec/dummy/config/routes.rb +3 -0
  41. data/spec/dummy/config/storage.yml +34 -0
  42. data/spec/dummy/config.ru +6 -0
  43. data/spec/dummy/db/migrate/20250312042100_add_service_name_to_active_storage_blobs.active_storage.rb +22 -0
  44. data/spec/dummy/db/migrate/20250312042101_create_active_storage_variant_records.active_storage.rb +27 -0
  45. data/spec/dummy/db/migrate/20250312042102_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb +8 -0
  46. data/spec/dummy/db/schema.rb +24 -0
  47. data/spec/dummy/log/development.log +168 -0
  48. data/spec/dummy/log/test.log +818 -0
  49. data/spec/dummy/public/404.html +67 -0
  50. data/spec/dummy/public/406-unsupported-browser.html +66 -0
  51. data/spec/dummy/public/422.html +67 -0
  52. data/spec/dummy/public/500.html +66 -0
  53. data/spec/dummy/public/icon.png +0 -0
  54. data/spec/dummy/public/icon.svg +3 -0
  55. data/spec/dummy/public/robots.txt +1 -0
  56. data/spec/dummy/storage/development.sqlite3 +0 -0
  57. data/spec/dummy/storage/test.sqlite3 +0 -0
  58. data/spec/dummy/tmp/local_secret.txt +1 -0
  59. data/spec/factories/abizvn/general/general_settings.rb +9 -0
  60. data/spec/lib/general_spec.rb +7 -0
  61. data/spec/models/abizvn/general/general_setting_spec.rb +47 -0
  62. data/spec/rails_helper.rb +84 -0
  63. data/spec/serializers/abizvn/general/general_setting_lite_serializer_spec.rb +14 -0
  64. data/spec/services/abizvn/general/general_setting_service_spec.rb +18 -0
  65. data/spec/spec_helper.rb +94 -0
  66. data/spec/support/general_validation_helpers.rb +21 -0
  67. metadata +64 -2
@@ -0,0 +1,25 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide content security policy.
4
+ # See the Securing Rails Applications Guide for more information:
5
+ # https://guides.rubyonrails.org/security.html#content-security-policy-header
6
+
7
+ # Rails.application.configure do
8
+ # config.content_security_policy do |policy|
9
+ # policy.default_src :self, :https
10
+ # policy.font_src :self, :https, :data
11
+ # policy.img_src :self, :https, :data
12
+ # policy.object_src :none
13
+ # policy.script_src :self, :https
14
+ # policy.style_src :self, :https
15
+ # # Specify URI for violation reports
16
+ # # policy.report_uri "/csp-violation-report-endpoint"
17
+ # end
18
+ #
19
+ # # Generate session nonces for permitted importmap, inline scripts, and inline styles.
20
+ # config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21
+ # config.content_security_policy_nonce_directives = %w(script-src style-src)
22
+ #
23
+ # # Report violations without enforcing the policy.
24
+ # # config.content_security_policy_report_only = true
25
+ # end
@@ -0,0 +1,8 @@
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
8
+ ]
@@ -0,0 +1,16 @@
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
@@ -0,0 +1,70 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file eases your Rails 7.2 framework defaults upgrade.
4
+ #
5
+ # Uncomment each configuration one by one to switch to the new default.
6
+ # Once your application is ready to run with all new defaults, you can remove
7
+ # this file and set the `config.load_defaults` to `7.2`.
8
+ #
9
+ # Read the Guide for Upgrading Ruby on Rails for more info on each option.
10
+ # https://guides.rubyonrails.org/upgrading_ruby_on_rails.html
11
+
12
+ ###
13
+ # Controls whether Active Job's `#perform_later` and similar methods automatically defer
14
+ # the job queuing to after the current Active Record transaction is committed.
15
+ #
16
+ # Example:
17
+ # Topic.transaction do
18
+ # topic = Topic.create(...)
19
+ # NewTopicNotificationJob.perform_later(topic)
20
+ # end
21
+ #
22
+ # In this example, if the configuration is set to `:never`, the job will
23
+ # be enqueued immediately, even though the `Topic` hasn't been committed yet.
24
+ # Because of this, if the job is picked up almost immediately, or if the
25
+ # transaction doesn't succeed for some reason, the job will fail to find this
26
+ # topic in the database.
27
+ #
28
+ # If `enqueue_after_transaction_commit` is set to `:default`, the queue adapter
29
+ # will define the behaviour.
30
+ #
31
+ # Note: Active Job backends can disable this feature. This is generally done by
32
+ # backends that use the same database as Active Record as a queue, hence they
33
+ # don't need this feature.
34
+ #++
35
+ # Rails.application.config.active_job.enqueue_after_transaction_commit = :default
36
+
37
+ ###
38
+ # Adds image/webp to the list of content types Active Storage considers as an image
39
+ # Prevents automatic conversion to a fallback PNG, and assumes clients support WebP, as they support gif, jpeg, and png.
40
+ # This is possible due to broad browser support for WebP, but older browsers and email clients may still not support
41
+ # WebP. Requires imagemagick/libvips built with WebP support.
42
+ #++
43
+ # Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
44
+
45
+ ###
46
+ # Enable validation of migration timestamps. When set, an ActiveRecord::InvalidMigrationTimestampError
47
+ # will be raised if the timestamp prefix for a migration is more than a day ahead of the timestamp
48
+ # associated with the current time. This is done to prevent forward-dating of migration files, which can
49
+ # impact migration generation and other migration commands.
50
+ #
51
+ # Applications with existing timestamped migrations that do not adhere to the
52
+ # expected format can disable validation by setting this config to `false`.
53
+ #++
54
+ # Rails.application.config.active_record.validate_migration_timestamps = true
55
+
56
+ ###
57
+ # Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
58
+ #
59
+ # Example:
60
+ # ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date") #=> Date
61
+ #
62
+ # This query used to return a `String`.
63
+ #++
64
+ # Rails.application.config.active_record.postgresql_adapter_decode_dates = true
65
+
66
+ ###
67
+ # Enables YJIT as of Ruby 3.3, to bring sizeable performance improvements. If you are
68
+ # deploying to a memory constrained environment you may want to set this to `false`.
69
+ #++
70
+ # Rails.application.config.yjit = true
@@ -0,0 +1,13 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Define an application-wide HTTP permissions policy. For further
4
+ # information see: https://developers.google.com/web/updates/2018/06/feature-policy
5
+
6
+ # Rails.application.config.permissions_policy do |policy|
7
+ # policy.camera :none
8
+ # policy.gyroscope :none
9
+ # policy.microphone :none
10
+ # policy.usb :none
11
+ # policy.fullscreen :self
12
+ # policy.payment :self, "https://secure.example.com"
13
+ # end
@@ -0,0 +1,31 @@
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"
@@ -0,0 +1,34 @@
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
+ # The ideal number of threads per worker depends both on how much time the
9
+ # application spends waiting for IO operations and on how much you wish to
10
+ # to prioritize throughput over latency.
11
+ #
12
+ # As a rule of thumb, increasing the number of threads will increase how much
13
+ # traffic a given process can handle (throughput), but due to CRuby's
14
+ # Global VM Lock (GVL) it has diminishing returns and will degrade the
15
+ # response time (latency) of the application.
16
+ #
17
+ # The default is set to 3 threads as it's deemed a decent compromise between
18
+ # throughput and latency for the average Rails application.
19
+ #
20
+ # Any libraries that use a connection pool or another resource pool should
21
+ # be configured to provide at least as many connections as the number of
22
+ # threads. This includes Active Record's `pool` parameter in `database.yml`.
23
+ threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)
24
+ threads threads_count, threads_count
25
+
26
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
27
+ port ENV.fetch("PORT", 3000)
28
+
29
+ # Allow puma to be restarted by `bin/rails restart` command.
30
+ plugin :tmp_restart
31
+
32
+ # Specify the PID file. Defaults to tmp/pids/server.pid in development.
33
+ # In other environments, only set the PID file if requested.
34
+ pidfile ENV["PIDFILE"] if ENV["PIDFILE"]
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ mount Abizvn::General::Engine => "/abizvn-general"
3
+ end
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket-<%= Rails.env %>
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket-<%= Rails.env %>
23
+
24
+ # Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name-<%= Rails.env %>
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
@@ -0,0 +1,6 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative "config/environment"
4
+
5
+ run Rails.application
6
+ Rails.application.load_server
@@ -0,0 +1,22 @@
1
+ # This migration comes from active_storage (originally 20190112182829)
2
+ class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0]
3
+ def up
4
+ return unless table_exists?(:active_storage_blobs)
5
+
6
+ unless column_exists?(:active_storage_blobs, :service_name)
7
+ add_column :active_storage_blobs, :service_name, :string
8
+
9
+ if configured_service = ActiveStorage::Blob.service.name
10
+ ActiveStorage::Blob.unscoped.update_all(service_name: configured_service)
11
+ end
12
+
13
+ change_column :active_storage_blobs, :service_name, :string, null: false
14
+ end
15
+ end
16
+
17
+ def down
18
+ return unless table_exists?(:active_storage_blobs)
19
+
20
+ remove_column :active_storage_blobs, :service_name
21
+ end
22
+ end
@@ -0,0 +1,27 @@
1
+ # This migration comes from active_storage (originally 20191206030411)
2
+ class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
3
+ def change
4
+ return unless table_exists?(:active_storage_blobs)
5
+
6
+ # Use Active Record's configured type for primary key
7
+ create_table :active_storage_variant_records, id: primary_key_type, if_not_exists: true do |t|
8
+ t.belongs_to :blob, null: false, index: false, type: blobs_primary_key_type
9
+ t.string :variation_digest, null: false
10
+
11
+ t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true
12
+ t.foreign_key :active_storage_blobs, column: :blob_id
13
+ end
14
+ end
15
+
16
+ private
17
+ def primary_key_type
18
+ config = Rails.configuration.generators
19
+ config.options[config.orm][:primary_key_type] || :primary_key
20
+ end
21
+
22
+ def blobs_primary_key_type
23
+ pkey_name = connection.primary_key(:active_storage_blobs)
24
+ pkey_column = connection.columns(:active_storage_blobs).find { |c| c.name == pkey_name }
25
+ pkey_column.bigint? ? :bigint : pkey_column.type
26
+ end
27
+ end
@@ -0,0 +1,8 @@
1
+ # This migration comes from active_storage (originally 20211119233751)
2
+ class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0]
3
+ def change
4
+ return unless table_exists?(:active_storage_blobs)
5
+
6
+ change_column_null(:active_storage_blobs, :checksum, true)
7
+ end
8
+ end
@@ -0,0 +1,24 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema[7.2].define(version: 2025_03_12_042102) do
14
+ create_table "general_settings", force: :cascade do |t|
15
+ t.string "group", null: false
16
+ t.string "code", null: false
17
+ t.string "value", null: false
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ t.integer "order", default: 0, null: false
21
+ t.boolean "active", default: true, null: false
22
+ t.index ["group", "code"], name: "index_general_settings_group_and_code", unique: true
23
+ end
24
+ end
@@ -0,0 +1,168 @@
1
+  (12.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
2
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
3
+ ActiveRecord::InternalMetadata Load (2.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
4
+ ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-12 04:22:21.752355', '2025-03-12 04:22:21.752358') RETURNING "key"
5
+ ActiveRecord::SchemaMigration Load (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
+ Migrating to CreateGeneralSettings (20241115080211)
7
+ TRANSACTION (0.0ms) begin transaction
8
+  (1.6ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar, "code" varchar, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
9
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241115080211') RETURNING "version"
10
+ TRANSACTION (4.1ms) commit transaction
11
+ Migrating to AddIndexIntoGeneralSettings (20241116110614)
12
+ TRANSACTION (0.0ms) begin transaction
13
+  (3.9ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
14
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20241116110614') RETURNING "version"
15
+ TRANSACTION (3.3ms) commit transaction
16
+ Migrating to ReviewGeneralSetting (20250104054920)
17
+ TRANSACTION (0.0ms) begin transaction
18
+  (3.5ms) ALTER TABLE "general_settings" ADD "order" integer DEFAULT 0 NOT NULL
19
+  (0.1ms) ALTER TABLE "general_settings" ADD "active" boolean DEFAULT 1 NOT NULL
20
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250104054920') RETURNING "version"
21
+ TRANSACTION (1.2ms) commit transaction
22
+ Migrating to CreateEntityStatusCollection (20250218110737)
23
+ TRANSACTION (0.0ms) begin transaction
24
+ Abizvn::General::GeneralSetting Load (0.1ms) SELECT "general_settings".* FROM "general_settings" WHERE "general_settings"."group" = ? AND "general_settings"."code" = ? LIMIT ? [["group", "entity_status"], ["code", "draft"], ["LIMIT", 1]]
25
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
26
+ Abizvn::General::GeneralSetting Exists? (0.1ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."code" = ? AND "general_settings"."group" = ? LIMIT ? [["code", "draft"], ["group", "entity_status"], ["LIMIT", 1]]
27
+ Abizvn::General::GeneralSetting Exists? (0.0ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."value" = ? AND "general_settings"."group" = ? LIMIT ? [["value", "Draft"], ["group", "entity_status"], ["LIMIT", 1]]
28
+ Abizvn::General::GeneralSetting Create (0.6ms) INSERT INTO "general_settings" ("group", "code", "value", "created_at", "updated_at", "order", "active") VALUES (?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["group", "entity_status"], ["code", "draft"], ["value", "Draft"], ["created_at", "2025-03-12 04:22:21.987109"], ["updated_at", "2025-03-12 04:22:21.987109"], ["order", 0], ["active", 1]]
29
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
30
+ Abizvn::General::GeneralSetting Load (0.0ms) SELECT "general_settings".* FROM "general_settings" WHERE "general_settings"."group" = ? AND "general_settings"."code" = ? LIMIT ? [["group", "entity_status"], ["code", "public"], ["LIMIT", 1]]
31
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
32
+ Abizvn::General::GeneralSetting Exists? (1.7ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."code" = ? AND "general_settings"."group" = ? LIMIT ? [["code", "public"], ["group", "entity_status"], ["LIMIT", 1]]
33
+ Abizvn::General::GeneralSetting Exists? (0.0ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."value" = ? AND "general_settings"."group" = ? LIMIT ? [["value", "Public"], ["group", "entity_status"], ["LIMIT", 1]]
34
+ Abizvn::General::GeneralSetting Create (0.1ms) INSERT INTO "general_settings" ("group", "code", "value", "created_at", "updated_at", "order", "active") VALUES (?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["group", "entity_status"], ["code", "public"], ["value", "Public"], ["created_at", "2025-03-12 04:22:22.000558"], ["updated_at", "2025-03-12 04:22:22.000558"], ["order", 0], ["active", 1]]
35
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
36
+ Abizvn::General::GeneralSetting Load (0.0ms) SELECT "general_settings".* FROM "general_settings" WHERE "general_settings"."group" = ? AND "general_settings"."code" = ? LIMIT ? [["group", "entity_status"], ["code", "invisible"], ["LIMIT", 1]]
37
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
38
+ Abizvn::General::GeneralSetting Exists? (1.8ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."code" = ? AND "general_settings"."group" = ? LIMIT ? [["code", "invisible"], ["group", "entity_status"], ["LIMIT", 1]]
39
+ Abizvn::General::GeneralSetting Exists? (0.0ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."value" = ? AND "general_settings"."group" = ? LIMIT ? [["value", "Unlist"], ["group", "entity_status"], ["LIMIT", 1]]
40
+ Abizvn::General::GeneralSetting Create (0.1ms) INSERT INTO "general_settings" ("group", "code", "value", "created_at", "updated_at", "order", "active") VALUES (?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["group", "entity_status"], ["code", "invisible"], ["value", "Unlist"], ["created_at", "2025-03-12 04:22:22.010910"], ["updated_at", "2025-03-12 04:22:22.010910"], ["order", 0], ["active", 1]]
41
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
42
+ Abizvn::General::GeneralSetting Load (0.0ms) SELECT "general_settings".* FROM "general_settings" WHERE "general_settings"."group" = ? AND "general_settings"."code" = ? LIMIT ? [["group", "entity_status"], ["code", "private"], ["LIMIT", 1]]
43
+ TRANSACTION (0.0ms) SAVEPOINT active_record_1
44
+ Abizvn::General::GeneralSetting Exists? (1.9ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."code" = ? AND "general_settings"."group" = ? LIMIT ? [["code", "private"], ["group", "entity_status"], ["LIMIT", 1]]
45
+ Abizvn::General::GeneralSetting Exists? (0.0ms) SELECT 1 AS one FROM "general_settings" WHERE "general_settings"."value" = ? AND "general_settings"."group" = ? LIMIT ? [["value", "Private"], ["group", "entity_status"], ["LIMIT", 1]]
46
+ Abizvn::General::GeneralSetting Create (0.1ms) INSERT INTO "general_settings" ("group", "code", "value", "created_at", "updated_at", "order", "active") VALUES (?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["group", "entity_status"], ["code", "private"], ["value", "Private"], ["created_at", "2025-03-12 04:22:22.021089"], ["updated_at", "2025-03-12 04:22:22.021089"], ["order", 0], ["active", 1]]
47
+ TRANSACTION (0.0ms) RELEASE SAVEPOINT active_record_1
48
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250218110737') RETURNING "version"
49
+ TRANSACTION (5.6ms) commit transaction
50
+ Migrating to AddMandatoryFields (20250220044935)
51
+ TRANSACTION (0.0ms) begin transaction
52
+  (0.0ms) PRAGMA foreign_keys
53
+  (0.0ms) PRAGMA defer_foreign_keys
54
+  (0.0ms) PRAGMA defer_foreign_keys = ON
55
+  (0.0ms) PRAGMA foreign_keys = OFF
56
+  (0.1ms) CREATE TEMPORARY TABLE "ageneral_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar, "code" varchar, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
57
+  (0.1ms) CREATE UNIQUE INDEX "tindex_ageneral_settings_group_and_code" ON "ageneral_settings" ("group", "code")
58
+  (0.0ms) INSERT INTO "ageneral_settings" ("id","group","code","value","created_at","updated_at","order","active")
59
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "general_settings"
60
+  (0.4ms) DROP TABLE "general_settings"
61
+  (0.1ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
62
+  (0.0ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
63
+  (0.0ms) INSERT INTO "general_settings" ("id","group","code","value","created_at","updated_at","order","active")
64
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "ageneral_settings"
65
+  (0.1ms) DROP TABLE "ageneral_settings"
66
+  (0.0ms) PRAGMA defer_foreign_keys = 0
67
+  (0.0ms) PRAGMA foreign_keys = 1
68
+  (0.0ms) PRAGMA foreign_keys
69
+  (0.0ms) PRAGMA defer_foreign_keys
70
+  (0.0ms) PRAGMA defer_foreign_keys = ON
71
+  (0.0ms) PRAGMA foreign_keys = OFF
72
+  (0.1ms) CREATE TEMPORARY TABLE "ageneral_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
73
+  (0.1ms) CREATE UNIQUE INDEX "tindex_ageneral_settings_group_and_code" ON "ageneral_settings" ("group", "code")
74
+  (0.0ms) INSERT INTO "ageneral_settings" ("id","group","code","value","created_at","updated_at","order","active")
75
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "general_settings"
76
+  (0.1ms) DROP TABLE "general_settings"
77
+  (0.1ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar NOT NULL, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
78
+  (0.0ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
79
+  (0.0ms) INSERT INTO "general_settings" ("id","group","code","value","created_at","updated_at","order","active")
80
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "ageneral_settings"
81
+  (0.1ms) DROP TABLE "ageneral_settings"
82
+  (0.0ms) PRAGMA defer_foreign_keys = 0
83
+  (0.0ms) PRAGMA foreign_keys = 1
84
+  (0.0ms) PRAGMA foreign_keys
85
+  (0.0ms) PRAGMA defer_foreign_keys
86
+  (0.0ms) PRAGMA defer_foreign_keys = ON
87
+  (0.0ms) PRAGMA foreign_keys = OFF
88
+  (0.1ms) CREATE TEMPORARY TABLE "ageneral_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar NOT NULL, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
89
+  (0.0ms) CREATE UNIQUE INDEX "tindex_ageneral_settings_group_and_code" ON "ageneral_settings" ("group", "code")
90
+  (0.0ms) INSERT INTO "ageneral_settings" ("id","group","code","value","created_at","updated_at","order","active")
91
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "general_settings"
92
+  (0.1ms) DROP TABLE "general_settings"
93
+  (0.1ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar NOT NULL, "value" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
94
+  (0.0ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
95
+  (0.0ms) INSERT INTO "general_settings" ("id","group","code","value","created_at","updated_at","order","active")
96
+ SELECT "id","group","code","value","created_at","updated_at","order","active" FROM "ageneral_settings"
97
+  (0.1ms) DROP TABLE "ageneral_settings"
98
+  (0.0ms) PRAGMA defer_foreign_keys = 0
99
+  (0.0ms) PRAGMA foreign_keys = 1
100
+ ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250220044935') RETURNING "version"
101
+ TRANSACTION (4.1ms) commit transaction
102
+ Migrating to AddServiceNameToActiveStorageBlobs (20250312042100)
103
+ TRANSACTION (0.0ms) begin transaction
104
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250312042100') RETURNING "version"
105
+ TRANSACTION (1.6ms) commit transaction
106
+ Migrating to CreateActiveStorageVariantRecords (20250312042101)
107
+ TRANSACTION (0.1ms) begin transaction
108
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250312042101') RETURNING "version"
109
+ TRANSACTION (1.4ms) commit transaction
110
+ Migrating to RemoveNotNullOnActiveStorageBlobsChecksum (20250312042102)
111
+ TRANSACTION (0.1ms) begin transaction
112
+ ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20250312042102') RETURNING "version"
113
+ TRANSACTION (2.0ms) commit transaction
114
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
115
+ ActiveRecord::InternalMetadata Load (2.7ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
116
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
117
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
118
+ ActiveRecord::InternalMetadata Load (2.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
119
+ ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
120
+ ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
121
+ ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
122
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
123
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
124
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
125
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
126
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
127
+  (79.0ms) DROP TABLE IF EXISTS "general_settings"
128
+  (13.1ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar NOT NULL, "value" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
129
+  (7.0ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
130
+  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
131
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
132
+  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES (20250312042102)
133
+  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES
134
+ (20250312042101),
135
+ (20250312042100),
136
+ (20250220044935),
137
+ (20250218110737),
138
+ (20250104054920),
139
+ (20241116110614),
140
+ (20241115080211);
141
+  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
142
+ ActiveRecord::InternalMetadata Load (2.1ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
143
+ ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-12 04:52:55.699690', '2025-03-12 04:52:55.699692') RETURNING "key"
144
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
145
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
146
+ ActiveRecord::InternalMetadata Create (2.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'c39726148706e385cc11f2f13a38759323058a50', '2025-03-12 04:52:55.716487', '2025-03-12 04:52:55.716489') RETURNING "key"
147
+  (49.4ms) DROP TABLE IF EXISTS "general_settings"
148
+  (13.5ms) CREATE TABLE "general_settings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "group" varchar NOT NULL, "code" varchar NOT NULL, "value" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "order" integer DEFAULT 0 NOT NULL, "active" boolean DEFAULT 1 NOT NULL)
149
+  (5.7ms) CREATE UNIQUE INDEX "index_general_settings_group_and_code" ON "general_settings" ("group", "code")
150
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
151
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
152
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20250312042102)
153
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES
154
+ (20250312042101),
155
+ (20250312042100),
156
+ (20250220044935),
157
+ (20250218110737),
158
+ (20250104054920),
159
+ (20241116110614),
160
+ (20241115080211);
161
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
162
+ ActiveRecord::InternalMetadata Load (2.0ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
163
+ ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2025-03-12 04:52:55.888851', '2025-03-12 04:52:55.888853') RETURNING "key"
164
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "environment"]]
165
+ ActiveRecord::InternalMetadata Update (1.0ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-12 04:52:55.899723' WHERE "ar_internal_metadata"."key" = 'environment'
166
+ ActiveRecord::InternalMetadata Load (1.3ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 [[nil, "schema_sha1"]]
167
+ ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'c39726148706e385cc11f2f13a38759323058a50', '2025-03-12 04:52:55.904126', '2025-03-12 04:52:55.904127') RETURNING "key"
168
+ ActiveRecord::SchemaMigration Load (4.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC