stateful_models 0.0.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +181 -0
- data/lib/generators/has_states/install/install_generator.rb +25 -0
- data/lib/generators/has_states/install/templates/create_has_states_states.rb.erb +17 -0
- data/lib/generators/has_states/install/templates/initializer.rb.erb +42 -0
- data/lib/has_states/callback.rb +58 -0
- data/lib/has_states/configuration/model_configuration.rb +48 -0
- data/lib/has_states/configuration/state_type_configuration.rb +15 -0
- data/lib/has_states/configuration.rb +83 -0
- data/lib/has_states/railtie.rb +8 -0
- data/lib/has_states/state.rb +41 -0
- data/lib/has_states/stateable.rb +22 -0
- data/lib/has_states/version.rb +5 -0
- data/lib/has_states.rb +24 -0
- data/spec/dummy/Gemfile +40 -0
- data/spec/dummy/Gemfile.lock +286 -0
- data/spec/dummy/README.md +24 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/controllers/application_controller.rb +4 -0
- data/spec/dummy/app/jobs/application_job.rb +9 -0
- data/spec/dummy/app/models/application_record.rb +5 -0
- data/spec/dummy/app/models/company.rb +3 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/bin/brakeman +9 -0
- data/spec/dummy/bin/dev +4 -0
- data/spec/dummy/bin/docker-entrypoint +14 -0
- data/spec/dummy/bin/rails +6 -0
- data/spec/dummy/bin/rake +6 -0
- data/spec/dummy/bin/rubocop +10 -0
- data/spec/dummy/bin/setup +36 -0
- data/spec/dummy/bin/thrust +7 -0
- data/spec/dummy/config/application.rb +27 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/credentials.yml.enc +1 -0
- data/spec/dummy/config/database.yml +37 -0
- data/spec/dummy/config/environment.rb +7 -0
- data/spec/dummy/config/environments/development.rb +54 -0
- data/spec/dummy/config/environments/production.rb +69 -0
- data/spec/dummy/config/environments/test.rb +44 -0
- data/spec/dummy/config/initializers/cors.rb +18 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +10 -0
- data/spec/dummy/config/initializers/inflections.rb +18 -0
- data/spec/dummy/config/locales/en.yml +31 -0
- data/spec/dummy/config/master.key +1 -0
- data/spec/dummy/config/puma.rb +43 -0
- data/spec/dummy/config/routes.rb +12 -0
- data/spec/dummy/config.ru +8 -0
- data/spec/dummy/db/migrate/20241221171423_create_test_models.rb +15 -0
- data/spec/dummy/db/migrate/20241221183116_create_has_states_tables.rb +19 -0
- data/spec/dummy/db/schema.rb +40 -0
- data/spec/dummy/db/seeds.rb +11 -0
- data/spec/dummy/log/development.log +142 -0
- data/spec/dummy/log/test.log +16652 -0
- data/spec/dummy/public/robots.txt +1 -0
- data/spec/dummy/storage/development.sqlite3 +0 -0
- data/spec/dummy/storage/test.sqlite3 +0 -0
- data/spec/dummy/tmp/local_secret.txt +1 -0
- data/spec/factories/has_states.rb +19 -0
- data/spec/generators/has_states/install_generator_spec.rb +27 -0
- data/spec/generators/tmp/config/initializers/has_states.rb +42 -0
- data/spec/generators/tmp/db/migrate/20241223020432_create_has_states_states.rb +17 -0
- data/spec/has_states/callback_spec.rb +92 -0
- data/spec/has_states/configuration_spec.rb +161 -0
- data/spec/has_states/state_spec.rb +264 -0
- data/spec/has_states_spec.rb +52 -0
- data/spec/rails_helper.rb +18 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/support/database_cleaner.rb +17 -0
- data/spec/support/factory_bot.rb +8 -0
- data/spec/support/shoulda_matchers.rb +10 -0
- data/spec/tmp/config/initializers/has_states.rb +12 -0
- data/spec/tmp/db/migrate/20241223004024_create_has_states_states.rb +20 -0
- metadata +122 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# The test environment is used exclusively to run your application's
|
4
|
+
# test suite. You never need to work with it otherwise. Remember that
|
5
|
+
# your test database is "scratch space" for the test suite and is wiped
|
6
|
+
# and recreated between test runs. Don't rely on the data there!
|
7
|
+
|
8
|
+
Rails.application.configure do
|
9
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
10
|
+
|
11
|
+
# While tests run files are not watched, reloading is not necessary.
|
12
|
+
config.enable_reloading = false
|
13
|
+
|
14
|
+
# Eager loading loads your entire application. When running a single test locally,
|
15
|
+
# this is usually not necessary, and can slow down your test suite. However, it's
|
16
|
+
# recommended that you enable it in continuous integration systems to ensure eager
|
17
|
+
# loading is working properly before deploying your code.
|
18
|
+
config.eager_load = ENV['CI'].present?
|
19
|
+
|
20
|
+
# Configure public file server for tests with cache-control for performance.
|
21
|
+
config.public_file_server.headers = { 'cache-control' => 'public, max-age=3600' }
|
22
|
+
|
23
|
+
# Show full error reports.
|
24
|
+
config.consider_all_requests_local = true
|
25
|
+
config.cache_store = :null_store
|
26
|
+
|
27
|
+
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
28
|
+
config.action_dispatch.show_exceptions = :rescuable
|
29
|
+
|
30
|
+
# Disable request forgery protection in test environment.
|
31
|
+
config.action_controller.allow_forgery_protection = false
|
32
|
+
|
33
|
+
# Print deprecation notices to the stderr.
|
34
|
+
config.active_support.deprecation = :stderr
|
35
|
+
|
36
|
+
# Raises error for missing translations.
|
37
|
+
# config.i18n.raise_on_missing_translations = true
|
38
|
+
|
39
|
+
# Annotate rendered view with file names.
|
40
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
41
|
+
|
42
|
+
# Raise error when a before_action's only/except options reference missing actions.
|
43
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
44
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Avoid CORS issues when API is called from the frontend app.
|
6
|
+
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin Ajax requests.
|
7
|
+
|
8
|
+
# Read more: https://github.com/cyu/rack-cors
|
9
|
+
|
10
|
+
# Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
11
|
+
# allow do
|
12
|
+
# origins "example.com"
|
13
|
+
#
|
14
|
+
# resource "*",
|
15
|
+
# headers: :any,
|
16
|
+
# methods: [:get, :post, :put, :patch, :delete, :options, :head]
|
17
|
+
# end
|
18
|
+
# end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
6
|
+
# Use this to limit dissemination of sensitive information.
|
7
|
+
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
8
|
+
Rails.application.config.filter_parameters += %i[
|
9
|
+
passw email secret token _key crypt salt certificate otp ssn cvv cvc
|
10
|
+
]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Add new inflection rules using the following format. Inflections
|
6
|
+
# are locale specific, and you may define rules for as many different
|
7
|
+
# locales as you wish. All of these examples are active by default:
|
8
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
9
|
+
# inflect.plural /^(ox)$/i, "\\1en"
|
10
|
+
# inflect.singular /^(ox)en/i, "\\1"
|
11
|
+
# inflect.irregular "person", "people"
|
12
|
+
# inflect.uncountable %w( fish sheep )
|
13
|
+
# end
|
14
|
+
|
15
|
+
# These inflection rules are supported but not enabled by default:
|
16
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
17
|
+
# inflect.acronym "RESTful"
|
18
|
+
# 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 @@
|
|
1
|
+
b71d1f5d6da2a66b244850869b544a9e
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This configuration file will be evaluated by Puma. The top-level methods that
|
4
|
+
# are invoked here are part of Puma's configuration DSL. For more information
|
5
|
+
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
|
6
|
+
#
|
7
|
+
# Puma starts a configurable number of processes (workers) and each process
|
8
|
+
# serves each request in a thread from an internal thread pool.
|
9
|
+
#
|
10
|
+
# You can control the number of workers using ENV["WEB_CONCURRENCY"]. You
|
11
|
+
# should only set this value when you want to run 2 or more workers. The
|
12
|
+
# default is already 1.
|
13
|
+
#
|
14
|
+
# The ideal number of threads per worker depends both on how much time the
|
15
|
+
# application spends waiting for IO operations and on how much you wish to
|
16
|
+
# prioritize throughput over latency.
|
17
|
+
#
|
18
|
+
# As a rule of thumb, increasing the number of threads will increase how much
|
19
|
+
# traffic a given process can handle (throughput), but due to CRuby's
|
20
|
+
# Global VM Lock (GVL) it has diminishing returns and will degrade the
|
21
|
+
# response time (latency) of the application.
|
22
|
+
#
|
23
|
+
# The default is set to 3 threads as it's deemed a decent compromise between
|
24
|
+
# throughput and latency for the average Rails application.
|
25
|
+
#
|
26
|
+
# Any libraries that use a connection pool or another resource pool should
|
27
|
+
# be configured to provide at least as many connections as the number of
|
28
|
+
# threads. This includes Active Record's `pool` parameter in `database.yml`.
|
29
|
+
threads_count = ENV.fetch('RAILS_MAX_THREADS', 3)
|
30
|
+
threads threads_count, threads_count
|
31
|
+
|
32
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
33
|
+
port ENV.fetch('PORT', 3000)
|
34
|
+
|
35
|
+
# Allow puma to be restarted by `bin/rails restart` command.
|
36
|
+
plugin :tmp_restart
|
37
|
+
|
38
|
+
# Run the Solid Queue supervisor inside of Puma for single-server deployments
|
39
|
+
plugin :solid_queue if ENV['SOLID_QUEUE_IN_PUMA']
|
40
|
+
|
41
|
+
# Specify the PID file. Defaults to tmp/pids/server.pid in development.
|
42
|
+
# In other environments, only set the PID file if requested.
|
43
|
+
pidfile ENV['PIDFILE'] if ENV['PIDFILE']
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Rails.application.routes.draw do
|
4
|
+
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
5
|
+
|
6
|
+
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
7
|
+
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
8
|
+
get 'up' => 'rails/health#show', as: :rails_health_check
|
9
|
+
|
10
|
+
# Defines the root path route ("/")
|
11
|
+
# root "posts#index"
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateTestModels < ActiveRecord::Migration[8.0]
|
4
|
+
def change
|
5
|
+
create_table :users do |t|
|
6
|
+
t.string :name
|
7
|
+
t.timestamps
|
8
|
+
end
|
9
|
+
|
10
|
+
create_table :companies do |t|
|
11
|
+
t.string :name
|
12
|
+
t.timestamps
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateHasStatesTables < ActiveRecord::Migration[7.1]
|
4
|
+
def change
|
5
|
+
create_table :has_states_states do |t|
|
6
|
+
t.string :state_type
|
7
|
+
t.string :status, null: false
|
8
|
+
|
9
|
+
t.json :metadata, null: false, default: {}
|
10
|
+
|
11
|
+
t.references :stateable, polymorphic: true, null: false
|
12
|
+
|
13
|
+
t.datetime :completed_at
|
14
|
+
t.timestamps
|
15
|
+
|
16
|
+
t.index %i[stateable_type stateable_id]
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file is auto-generated from the current state of the database. Instead
|
4
|
+
# of editing this file, please use the migrations feature of Active Record to
|
5
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
6
|
+
#
|
7
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
8
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
9
|
+
# be faster and is potentially less error prone than running all of your
|
10
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
11
|
+
# migrations use external dependencies or application code.
|
12
|
+
#
|
13
|
+
# It's strongly recommended that you check this file into your version control system.
|
14
|
+
|
15
|
+
ActiveRecord::Schema[8.0].define(version: 20_241_221_183_116) do
|
16
|
+
create_table 'companies', force: :cascade do |t|
|
17
|
+
t.string 'name'
|
18
|
+
t.datetime 'created_at', null: false
|
19
|
+
t.datetime 'updated_at', null: false
|
20
|
+
end
|
21
|
+
|
22
|
+
create_table 'has_states_states', force: :cascade do |t|
|
23
|
+
t.string 'state_type'
|
24
|
+
t.string 'status', null: false
|
25
|
+
t.json 'metadata', default: {}, null: false
|
26
|
+
t.string 'stateable_type', null: false
|
27
|
+
t.integer 'stateable_id', null: false
|
28
|
+
t.datetime 'completed_at'
|
29
|
+
t.datetime 'created_at', null: false
|
30
|
+
t.datetime 'updated_at', null: false
|
31
|
+
t.index %w[stateable_type stateable_id], name: 'index_has_states_states_on_stateable'
|
32
|
+
t.index %w[stateable_type stateable_id], name: 'index_has_states_states_on_stateable_type_and_stateable_id'
|
33
|
+
end
|
34
|
+
|
35
|
+
create_table 'users', force: :cascade do |t|
|
36
|
+
t.string 'name'
|
37
|
+
t.datetime 'created_at', null: false
|
38
|
+
t.datetime 'updated_at', null: false
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file should ensure the existence of records required to run the application in every environment (production,
|
4
|
+
# development, test). The code here should be idempotent so that it can be executed at any point in every environment.
|
5
|
+
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
6
|
+
#
|
7
|
+
# Example:
|
8
|
+
#
|
9
|
+
# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name|
|
10
|
+
# MovieGenre.find_or_create_by!(name: genre_name)
|
11
|
+
# end
|
@@ -0,0 +1,142 @@
|
|
1
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
2
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
3
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
4
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2024-12-21 17:33:35.222727', '2024-12-21 17:33:35.222731') RETURNING "key" /*application='Dummy'*/[0m
|
5
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
6
|
+
Migrating to CreateTestModels (20241221171423)
|
7
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
8
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
9
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "companies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241221171423') RETURNING "version" /*application='Dummy'*/[0m
|
11
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
12
|
+
Migrating to CreateHasStatesTables (20241221173105)
|
13
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
14
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
15
|
+
Migrating to CreateHasStatesTables (20241221173105)
|
16
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
18
|
+
Migrating to CreateHasStatesTables (20241221173105)
|
19
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
20
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "type" varchar NOT NULL, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
21
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
22
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_type_and_status" ON "has_states_states" ("type", "status") /*application='Dummy'*/[0m
|
23
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "idx_on_stateable_type_stateable_id_type_feb6c1fa88" ON "has_states_states" ("stateable_type", "stateable_id", "type") /*application='Dummy'*/[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241221173105') RETURNING "version" /*application='Dummy'*/[0m
|
25
|
+
[1m[36mTRANSACTION (14.6ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
29
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
30
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
31
|
+
Migrating to CreateHasStatesTables (20241221173105)
|
32
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
33
|
+
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE "has_states_states" /*application='Dummy'*/[0m
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Destroy (0.1ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20241221173105' /*application='Dummy'*/[0m
|
35
|
+
[1m[36mTRANSACTION (10.5ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
36
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
37
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
39
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
40
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
42
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
43
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
44
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
45
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
46
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
47
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
48
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
49
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_type_and_status" ON "has_states_states" ("type", "status") /*application='Dummy'*/[0m
|
50
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK TRANSACTION /*application='Dummy'*/[0m
|
51
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
52
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
53
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
54
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
55
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
56
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
57
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_type_and_status" ON "has_states_states" ("type", "status") /*application='Dummy'*/[0m
|
58
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mROLLBACK TRANSACTION /*application='Dummy'*/[0m
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
60
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
62
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
63
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
64
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
65
|
+
[1m[35m (1.0ms)[0m [1m[35mDROP TABLE IF EXISTS "companies" /*application='Dummy'*/[0m
|
66
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE TABLE "companies" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
67
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "users" /*application='Dummy'*/[0m
|
68
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "users" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
69
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) /*application='Dummy'*/[0m
|
70
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
71
|
+
[1m[35m (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20241221171423) /*application='Dummy'*/[0m
|
72
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
73
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
74
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2024-12-21 18:33:27.870302', '2024-12-21 18:33:27.870305') RETURNING "key" /*application='Dummy'*/[0m
|
75
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
76
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
77
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '132449e1d2b8d161a42498ced3f5db39344fd0d3', '2024-12-21 18:33:27.888227', '2024-12-21 18:33:27.888231') RETURNING "key" /*application='Dummy'*/[0m
|
78
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
79
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
80
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
81
|
+
[1m[36mTRANSACTION (2.6ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
82
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
83
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
84
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_type_and_status" ON "has_states_states" ("type", "status") /*application='Dummy'*/[0m
|
85
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK TRANSACTION /*application='Dummy'*/[0m
|
86
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'environment' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/[0m
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
88
|
+
Migrating to CreateHasStatesTables (20241221183116)
|
89
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
90
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "has_states_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "state_type" varchar, "status" varchar NOT NULL, "metadata" json DEFAULT '{}' NOT NULL, "stateable_type" varchar NOT NULL, "stateable_id" integer NOT NULL, "completed_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL) /*application='Dummy'*/[0m
|
91
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
92
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_has_states_states_on_stateable_type_and_stateable_id" ON "has_states_states" ("stateable_type", "stateable_id") /*application='Dummy'*/[0m
|
93
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ('20241221183116') RETURNING "version" /*application='Dummy'*/[0m
|
94
|
+
[1m[36mTRANSACTION (14.5ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
95
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/[0m
|
96
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
97
|
+
[1m[36mUser Create (1.5ms)[0m [1m[32mINSERT INTO "users" ("name", "created_at", "updated_at") VALUES ('Bob', '2024-12-22 23:04:52.396539', '2024-12-22 23:04:52.396539') RETURNING "id" /*application='Dummy'*/[0m
|
98
|
+
[1m[36mTRANSACTION (17.7ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
99
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
100
|
+
[1m[36mHasStates::State Create (0.6ms)[0m [1m[32mINSERT INTO "has_states_states" ("state_type", "status", "metadata", "stateable_type", "stateable_id", "completed_at", "created_at", "updated_at") VALUES ('kyc', 'pending', '{}', 'User', 1, NULL, '2024-12-22 23:04:54.237462', '2024-12-22 23:04:54.237462') RETURNING "id" /*application='Dummy'*/[0m
|
101
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
102
|
+
[1m[36mHasStates::State Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
103
|
+
[1m[36mHasStates::State Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' ORDER BY "has_states_states"."id" ASC LIMIT 1 /*application='Dummy'*/[0m
|
104
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
105
|
+
[1m[36mHasStates::State Update (0.6ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'rejected', "updated_at" = '2024-12-22 23:08:18.796095' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
106
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
107
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
108
|
+
[1m[36mHasStates::State Update (0.6ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'completed', "updated_at" = '2024-12-22 23:08:25.889539' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
109
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
110
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
111
|
+
[1m[36mHasStates::State Update (0.8ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'pending', "updated_at" = '2024-12-22 23:09:26.940672' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
112
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
113
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
114
|
+
[1m[36mHasStates::State Update (0.7ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'completed', "updated_at" = '2024-12-22 23:09:31.427987' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
115
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
116
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
117
|
+
[1m[36mHasStates::State Update (0.8ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'pending', "updated_at" = '2024-12-22 23:09:59.865172' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
118
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
119
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
120
|
+
[1m[36mHasStates::State Update (0.6ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'completed', "updated_at" = '2024-12-22 23:10:07.552494' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
121
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
122
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
123
|
+
[1m[36mHasStates::State Update (1.4ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'pending', "updated_at" = '2024-12-22 23:10:59.292605' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
124
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
125
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN immediate TRANSACTION /*application='Dummy'*/[0m
|
126
|
+
[1m[36mHasStates::State Update (0.6ms)[0m [1m[33mUPDATE "has_states_states" SET "status" = 'completed', "updated_at" = '2024-12-22 23:11:07.933844' WHERE "has_states_states"."id" = 1 /*application='Dummy'*/[0m
|
127
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mCOMMIT TRANSACTION /*application='Dummy'*/[0m
|
128
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
129
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
130
|
+
[1m[36mHasStates::State Load (0.2ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
131
|
+
[1m[36mHasStates::State Pluck (0.3ms)[0m [1m[34mSELECT "has_states_states"."id" FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' /*application='Dummy'*/[0m
|
132
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
133
|
+
[1m[36mCompany Load (0.2ms)[0m [1m[34mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
134
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
135
|
+
[1m[36mHasStates::State Load (0.2ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" ORDER BY "has_states_states"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
136
|
+
[1m[36mHasStates::State Load (0.2ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" ORDER BY "has_states_states"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
137
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 /*application='Dummy'*/[0m
|
138
|
+
[1m[36mHasStates::State Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'onboarding' AND "has_states_states"."status" = 'pending' LIMIT 1 /*application='Dummy'*/[0m
|
139
|
+
[1m[36mHasStates::State Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'onboarding' AND "has_states_states"."status" = 'email_verified' LIMIT 1 /*application='Dummy'*/[0m
|
140
|
+
[1m[36mHasStates::State Load (0.4ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|
141
|
+
[1m[36mHasStates::State Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "has_states_states" WHERE "has_states_states"."stateable_id" = 1 AND "has_states_states"."stateable_type" = 'User' AND "has_states_states"."state_type" = 'kyc' AND "has_states_states"."status" = 'under_review' LIMIT 1 /*application='Dummy'*/[0m
|
142
|
+
[1m[36mHasStates::State Load (0.3ms)[0m [1m[34mSELECT "has_states_states".* FROM "has_states_states" WHERE "has_states_states"."state_type" = 'onboarding' /* loading for pp */ LIMIT 11 /*application='Dummy'*/[0m
|