rapidfire 5.0.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/models/rapidfire/question.rb +1 -1
- data/app/models/rapidfire/survey.rb +1 -1
- data/app/services/rapidfire/attempt_builder.rb +2 -1
- data/app/views/rapidfire/attempts/_form.html.erb +8 -0
- data/lib/rapidfire/version.rb +1 -1
- data/spec/controllers/rapidfire/attempts_controller_spec.rb +1 -1
- data/spec/dummy/config/environments/development.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +1 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +90 -0
- data/spec/dummy/log/test.log +7067 -70435
- data/spec/factories/answers_factory.rb +4 -4
- data/spec/factories/attempts_factory.rb +2 -2
- data/spec/factories/questions_factory.rb +7 -7
- data/spec/factories/surveys_factory.rb +3 -3
- data/spec/factories/users_factory.rb +2 -2
- data/spec/features/rapidfire/answering_questions_spec.rb +25 -8
- data/spec/features/rapidfire/editing_answers_spec.rb +6 -6
- data/spec/features/rapidfire/managing_questions_spec.rb +3 -3
- data/spec/features/rapidfire/managing_surveys_spec.rb +18 -3
- data/spec/models/rapidfire/answer_spec.rb +2 -2
- data/spec/models/rapidfire/question_spec.rb +3 -3
- data/spec/models/rapidfire/questions/checkbox_spec.rb +3 -3
- data/spec/models/rapidfire/questions/date_spec.rb +2 -2
- data/spec/models/rapidfire/questions/file_spec.rb +2 -2
- data/spec/models/rapidfire/questions/multi_file_spec.rb +2 -2
- data/spec/models/rapidfire/questions/numeric_spec.rb +2 -2
- data/spec/models/rapidfire/questions/select_spec.rb +3 -3
- data/spec/models/rapidfire/survey_spec.rb +1 -1
- data/spec/serializers/rapidfire/question_result_serializer_spec.rb +1 -1
- data/spec/services/rapidfire/attempt_builder_spec.rb +5 -5
- data/spec/services/rapidfire/question_form_spec.rb +3 -3
- data/spec/services/rapidfire/survey_results_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/spec/support/rapidfire/answer_spec_helper.rb +12 -12
- data/spec/support/rapidfire/question_spec_helper.rb +7 -7
- data/spec/tasks/change_delimiter_from_comma_to_srsn_spec.rb +8 -8
- metadata +39 -125
- data/spec/dummy/tmp/capybara/capybara-202304042341376066162578.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042343302647462912.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042343539524195351.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042344039569698410.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042344107081227684.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042346131668826835.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042346251478672095.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042346382011987550.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-20230404234755589239852.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042348377947112508.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042348502970551073.html +0 -55
- data/spec/dummy/tmp/capybara/capybara-202304042351403473706214.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042352069122239363.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042353148433036065.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042353383278368450.html +0 -29
- data/spec/dummy/tmp/capybara/capybara-202304042358431743077504.html +0 -20
- data/spec/dummy/tmp/capybara/capybara-202304042358433434523512.html +0 -20
- data/spec/dummy/tmp/capybara/capybara-202304042358434379121493.html +0 -20
- data/spec/dummy/tmp/capybara/capybara-202304042358492996621343.html +0 -20
- data/spec/dummy/tmp/storage/2e/vk/2evksypp3ct4p9cjihfxwomru17i +0 -1
- data/spec/dummy/tmp/storage/9k/xt/9kxth5brdkw4huy7lciesekum0pt +0 -1
- data/spec/dummy/tmp/storage/cu/44/cu4452jrce4gd0ebcqop1d22kwbs +0 -1
- data/spec/dummy/tmp/storage/dl/oy/dloy0dbuquwe0f48bhugjca71pbv +0 -1
- data/spec/dummy/tmp/storage/h5/vc/h5vcb12f2cviqinrckfmmz4wtsa7 +0 -1
- data/spec/dummy/tmp/storage/ht/4x/ht4xma120asy3gd0fpeseddjzb2l +0 -1
- data/spec/dummy/tmp/storage/ip/au/ipauutuc5vy678hrwz4jx3rvm0n6 +0 -1
- data/spec/dummy/tmp/storage/j1/uy/j1uyrkrosby81sgq1mf59bs7oqee +0 -1
- data/spec/dummy/tmp/storage/nj/vv/njvvpx93zptrmlwbwiuxmxyh1jnf +0 -1
- data/spec/dummy/tmp/storage/nv/nx/nvnxlyvw3vd8xsq2sa4eazqepgbn +0 -1
- data/spec/dummy/tmp/storage/of/b4/ofb41sjj1mp33qs3wsivadhuts3p +0 -1
- data/spec/dummy/tmp/storage/og/ee/ogeerywp2y4szmnlrc5fnuya2evl +0 -1
- data/spec/dummy/tmp/storage/wz/oc/wzocvk4ahpp7kwc951u7f78nj259 +0 -1
- data/spec/dummy/tmp/storage/z3/vx/z3vxuitmnxld08m0qvt9057uyglc +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/k8/br/k8br0vtpgmpqxrl8mdsceymh3c8d +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/mw/le/mwle6olsgsk8h2pxvklj5q0yr9sc +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o1/2w/o12whqlkt6rc0yaq3b6fsowmewdp +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/o9/2g/o92go6wavds5oht0dso6m1ybvbh4 +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/om/7f/om7frlle7xz8pybxbydeq1q20hro +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/q6/78/q678f1u8v1nv07dbtm85knmw3b9q +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/r4/wp/r4wpzje2mix0dtl8r2f4akh18fm1 +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/v1/h9/v1h9cuuwtwvz8p6fl574qum6k4ig +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/vb/mw/vbmwrl014lccj3jo61vojqscfxha +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/wn/q4/wnq49hhhxvh4gnc2782lf4zzlz46 +0 -1
- data/spec/dummy/tmp/storage-7.0.0-ruby-3.2.0/ya/go/yago1kn4o7p8jfob0cxetrif714s +0 -1
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/40/x5/40x5xe5nmit9ngld2lngzfjp6r6x → storage--ruby-3.3.5/81/2n/812ne4iy4c40lvvdigsg8z02b1v1} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/7h/za/7hza4otjknyyo14szs2az8wiu7ai → storage--ruby-3.3.5/85/bs/85bsmaecej0491dey4t9jpci9yw3} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/1b/cx/1bcxhbuf0bwp8uduq76gye1v11al → storage--ruby-3.3.5/8y/7b/8y7bhqwxh5cad8xau7nfhtukxcsc} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/ad/ct/adct5ysy5mq6kyptqk5q3fzfpwui → storage--ruby-3.3.5/93/z6/93z6nje4f921vgdwa3lkuf49xocr} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/bl/yo/blyo13wkf0l9igpyq4anaqbomz0h → storage--ruby-3.3.5/at/qk/atqksrev4s0ic4srii57aspu4o6z} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/cc/g8/ccg8282dt6ixi4yvvwjt4noqa6pj → storage--ruby-3.3.5/bi/j3/bij3puzjsfm39colnpqstpu6ggv7} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/d3/gj/d3gjt0qoinigrbao1anp4hmvedjm → storage--ruby-3.3.5/cx/4p/cx4pp9ugdv2xndwll28mo8jhjgig} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/n7/ja/n7jacvu07s9z9ai7acjq8kovdh02 → storage--ruby-3.3.5/gv/9c/gv9cand9rqcew9sceoirbfm9l2bl} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/f2/bv/f2bvz6ws3xfrk17dpzhyacx3kys2 → storage--ruby-3.3.5/m2/ce/m2cehdwpmdl0s5vgylxc1tcbxlr2} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/f8/3z/f83z2f041tfpu39ygi0gu32wai8x → storage--ruby-3.3.5/md/rj/mdrjgxirkdtyfijfwdxn37dswspm} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/gt/rc/gtrco13ij0i2vi27t6wm1jhcve5p → storage--ruby-3.3.5/xv/oi/xvoijswvk9a0blrua7x5yl94a6qw} +0 -0
- /data/spec/dummy/tmp/{storage-7.0.0-ruby-3.2.0/qq/kc/qqkciwi2vymum1556755n85po1j9 → storage--ruby-3.3.5/z6/cw/z6cw41euxe15z3ao5wkypp0y9liw} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb725054d9ab842d48820c4ed9bdf01ac58ebaa48e7d49b4c5a1d6cb7cfaae5
|
4
|
+
data.tar.gz: 7cd69d44cd3905355dda875aee51639d772b9b72dd626feb366842a4fe702e72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab9da6b041b2cc5f5975b943908754c2a8b212f7116f47432af4923c8ff78cb4eb7a36f7279ac597e408422247475832113f869da552f3c0e7f66e85889988c
|
7
|
+
data.tar.gz: e4c751bb2fdcbc44df09f2b01ef6ecd3d6fe267b466ae9ddbce07e17f3476d6fffec6b161577cd91f32525135165b9cd6f25bf89da560b8ec8be777cb9e5105d
|
data/README.md
CHANGED
@@ -4,8 +4,8 @@ One stop solution for all survey related requirements! Its tad easy!
|
|
4
4
|
|
5
5
|
This gem supports:
|
6
6
|
|
7
|
-
- **rails**:
|
8
|
-
- **ruby**:
|
7
|
+
- **rails**: 7.0, 7.1, 7.2 and 8.0
|
8
|
+
- **ruby**: 3.1, 3.2 and 3.3
|
9
9
|
|
10
10
|
NOTE: Some combinations won't be supported. Please check CI for the ignored ones.
|
11
11
|
|
@@ -148,7 +148,7 @@ GET /rapidfire/surveys/<survey-id>/results
|
|
148
148
|
|
149
149
|
This new api supports two formats: `html` and `json`. The `json` format can be used with any
|
150
150
|
javascript based chart solutions like Chart.js. An example can be seen
|
151
|
-
[here](https://github.com/
|
151
|
+
[here](https://github.com/codemancers/rapidfire-app).
|
152
152
|
|
153
153
|
Diving into details of `json` format, all the questions can be categorized into
|
154
154
|
one of the two categories:
|
@@ -46,7 +46,8 @@ module Rapidfire
|
|
46
46
|
|
47
47
|
def save(options = {})
|
48
48
|
save!(options)
|
49
|
-
rescue ActiveRecord::ActiveRecordError =>
|
49
|
+
rescue ActiveRecord::ActiveRecordError => e
|
50
|
+
errors.add(:base, e.message)
|
50
51
|
# repopulate answers here in case of failure as they are not getting updated
|
51
52
|
@answers = @survey.questions.collect do |question|
|
52
53
|
@attempt.answers.find { |a| a.question_id == question.id }
|
@@ -4,6 +4,14 @@
|
|
4
4
|
<p><%= @survey.introduction %></p>
|
5
5
|
|
6
6
|
<%= form_for([@survey, @attempt_builder], method: method) do |f| %>
|
7
|
+
<%- if @attempt_builder.errors.present? %>
|
8
|
+
<ul>
|
9
|
+
<%- @attempt_builder.errors.full_messages.each do |message| %>
|
10
|
+
<li><%= message %></li>
|
11
|
+
<% end %>
|
12
|
+
</ul>
|
13
|
+
<% end %>
|
14
|
+
|
7
15
|
<%- @attempt_builder.answers.each do |answer| %>
|
8
16
|
<%= f.fields_for("#{answer.question.id}", answer) do |answer_form| %>
|
9
17
|
<%= render_answer_form_helper(answer, answer_form) %>
|
data/lib/rapidfire/version.rb
CHANGED
@@ -10,7 +10,7 @@ describe Rapidfire::AttemptsController do
|
|
10
10
|
# any default value.
|
11
11
|
context 'when no parameters are passed' do
|
12
12
|
it 'initializes answer builder with empty args' do
|
13
|
-
survey =
|
13
|
+
survey = FactoryBot.create(:survey)
|
14
14
|
|
15
15
|
if Rails::VERSION::MAJOR >= 5
|
16
16
|
expect {
|
Binary file
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema[
|
13
|
+
ActiveRecord::Schema[8.0].define(version: 2023_04_02_174122) do
|
14
14
|
create_table "active_storage_attachments", force: :cascade do |t|
|
15
15
|
t.string "name", null: false
|
16
16
|
t.string "record_type", null: false
|
@@ -79,8 +79,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_02_174122) do
|
|
79
79
|
t.text "introduction"
|
80
80
|
t.datetime "created_at", null: false
|
81
81
|
t.datetime "updated_at", null: false
|
82
|
-
t.integer "owner_id"
|
83
|
-
t.string "owner_type"
|
84
82
|
t.text "after_survey_content"
|
85
83
|
t.boolean "active"
|
86
84
|
end
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,90 @@
|
|
1
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
2
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL)[0m
|
3
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
4
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
5
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
6
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "active_storage_blobs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key" varchar NOT NULL, "filename" varchar NOT NULL, "content_type" varchar, "metadata" text, "service_name" varchar NOT NULL, "byte_size" bigint NOT NULL, "checksum" varchar, "created_at" datetime(6) NOT NULL)[0m
|
7
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
8
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_variant_records"[0m
|
9
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "active_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL)[0m
|
10
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest")[0m
|
11
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "rapidfire_answers"[0m
|
12
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "rapidfire_answers" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "attempt_id" integer, "question_id" integer, "answer_text" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
13
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_answers_on_attempt_id" ON "rapidfire_answers" ("attempt_id")[0m
|
14
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_answers_on_question_id" ON "rapidfire_answers" ("question_id")[0m
|
15
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "rapidfire_attempts"[0m
|
16
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "rapidfire_attempts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "user_type" varchar, "user_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
17
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_attempts_on_survey_id" ON "rapidfire_attempts" ("survey_id")[0m
|
18
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_attempts_on_user_id_and_user_type" ON "rapidfire_attempts" ("user_id", "user_type")[0m
|
19
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_attempts_on_user" ON "rapidfire_attempts" ("user_type", "user_id")[0m
|
20
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "rapidfire_questions"[0m
|
21
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "rapidfire_questions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "survey_id" integer, "type" varchar, "question_text" varchar, "default_text" varchar, "placeholder" varchar, "position" integer, "answer_options" text, "validation_rules" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
22
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_rapidfire_questions_on_survey_id" ON "rapidfire_questions" ("survey_id")[0m
|
23
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "rapidfire_surveys"[0m
|
24
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "rapidfire_surveys" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "introduction" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "after_survey_content" text, "active" boolean)[0m
|
25
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m
|
26
|
+
[1m[35m (0.0ms)[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)[0m
|
27
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN immediate TRANSACTION[0m
|
28
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
29
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
30
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
31
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
32
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TEMPORARY TABLE "aactive_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL)[0m
|
33
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "tindex_aactive_storage_attachments_uniqueness" ON "aactive_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
34
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "tindex_aactive_storage_attachments_on_blob_id" ON "aactive_storage_attachments" ("blob_id")[0m
|
35
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "aactive_storage_attachments" ("id","name","record_type","record_id","blob_id","created_at")
|
36
|
+
SELECT "id","name","record_type","record_id","blob_id","created_at" FROM "active_storage_attachments"[0m
|
37
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE "active_storage_attachments"[0m
|
38
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "active_storage_attachments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "record_type" varchar NOT NULL, "record_id" bigint NOT NULL, "blob_id" bigint NOT NULL, "created_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_c3b3935057"
|
39
|
+
FOREIGN KEY ("blob_id")
|
40
|
+
REFERENCES "active_storage_blobs" ("id")
|
41
|
+
)[0m
|
42
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
43
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
44
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "active_storage_attachments" ("id","name","record_type","record_id","blob_id","created_at")
|
45
|
+
SELECT "id","name","record_type","record_id","blob_id","created_at" FROM "aactive_storage_attachments"[0m
|
46
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE "aactive_storage_attachments"[0m
|
47
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
48
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
49
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mCOMMIT TRANSACTION[0m
|
50
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mBEGIN immediate TRANSACTION[0m
|
51
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m
|
52
|
+
[1m[35mSQL (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys[0m
|
53
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = ON[0m
|
54
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m
|
55
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TEMPORARY TABLE "aactive_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL)[0m
|
56
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "tindex_aactive_storage_variant_records_uniqueness" ON "aactive_storage_variant_records" ("blob_id", "variation_digest")[0m
|
57
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "aactive_storage_variant_records" ("id","blob_id","variation_digest")
|
58
|
+
SELECT "id","blob_id","variation_digest" FROM "active_storage_variant_records"[0m
|
59
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE "active_storage_variant_records"[0m
|
60
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE TABLE "active_storage_variant_records" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "blob_id" bigint NOT NULL, "variation_digest" varchar NOT NULL, CONSTRAINT "fk_rails_993965df05"
|
61
|
+
FOREIGN KEY ("blob_id")
|
62
|
+
REFERENCES "active_storage_blobs" ("id")
|
63
|
+
)[0m
|
64
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_variant_records_uniqueness" ON "active_storage_variant_records" ("blob_id", "variation_digest")[0m
|
65
|
+
[1m[35mSQL (0.0ms)[0m [1m[32mINSERT INTO "active_storage_variant_records" ("id","blob_id","variation_digest")
|
66
|
+
SELECT "id","blob_id","variation_digest" FROM "aactive_storage_variant_records"[0m
|
67
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE "aactive_storage_variant_records"[0m
|
68
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA defer_foreign_keys = 0[0m
|
69
|
+
[1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m
|
70
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mCOMMIT TRANSACTION[0m
|
71
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
72
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
73
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20230402174122)[0m
|
74
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
75
|
+
(20190701274749),
|
76
|
+
(20170701191422),
|
77
|
+
(20170701191411),
|
78
|
+
(20130502170733);[0m
|
79
|
+
[1m[35m (0.1ms)[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)[0m
|
80
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
81
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('environment', 'development', '2024-11-21 19:28:01.413628', '2024-11-21 19:28:01.413629') RETURNING "key"[0m
|
82
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
83
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "schema_sha1"]]
|
84
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', '4a7e67e5b5e8e3f157a3358c4a4e2408915b5292', '2024-11-21 19:28:01.413883', '2024-11-21 19:28:01.413883') RETURNING "key"[0m
|
85
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
86
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
88
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1[0m [[nil, "environment"]]
|
89
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
90
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|