persistent_hash 0.0.6 → 1.0.0
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 +5 -5
- data/CHANGELOG.md +27 -0
- data/README.md +99 -0
- data/app/models/persistent_hash/hash.rb +11 -13
- data/db/migrate/20150518213536_create_persistent_hash.rb +2 -2
- data/db/migrate/20161110111600_convert_readable_value_to_text.rb +1 -1
- data/db/migrate/20190618182005_utf8_mb4.rb +5 -0
- data/lib/persistent_hash/version.rb +1 -1
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +33 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +32 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/persistent_hash.rb +11 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/schema.rb +23 -0
- data/spec/dummy/log/development.log +405 -0
- data/spec/dummy/log/test.log +3210 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/local_secret.txt +1 -0
- data/spec/models/persistent_hash/hash_spec.rb +79 -0
- data/spec/rails_helper.rb +26 -0
- data/spec/spec_helper.rb +61 -0
- metadata +112 -13
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
|
4
|
+
# is enabled by default.
|
|
5
|
+
|
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
|
13
|
+
# self.include_root_in_json = true
|
|
14
|
+
# end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
|
3
|
+
# than 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, please read the Rails Internationalization guide
|
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
|
21
|
+
|
|
22
|
+
en:
|
|
23
|
+
hello: "Hello world"
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
|
2
|
+
|
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
+
|
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
|
9
|
+
|
|
10
|
+
# Make sure the secrets in this file are kept private
|
|
11
|
+
# if you're sharing your code publicly.
|
|
12
|
+
|
|
13
|
+
development:
|
|
14
|
+
secret_key_base: d455948f90a3fbbe2a05d33723a29ad9928fa7939fd82dff1a4439726df657424946445f2e209dc532c6dd243f74825f2cc385b1ece557ae47f94bc813fcd974
|
|
15
|
+
|
|
16
|
+
test:
|
|
17
|
+
secret_key_base: 05c48e76814ad06b117453899266ef5d03060769a30466e018afb89e0a5e3913482b54ec324de1db055aac145c77131ada6b613493b6165fd0b3d878f222ba46
|
|
18
|
+
|
|
19
|
+
# Do not keep production secrets in the repository,
|
|
20
|
+
# instead read values from the environment.
|
|
21
|
+
production:
|
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
# Note that this schema.rb definition is the authoritative source for your
|
|
6
|
+
# database schema. If you need to create the application database on another
|
|
7
|
+
# system, you should be using db:schema:load, not running all the migrations
|
|
8
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
9
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
10
|
+
#
|
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
|
12
|
+
|
|
13
|
+
ActiveRecord::Schema.define(version: 2019_06_18_182005) do
|
|
14
|
+
|
|
15
|
+
create_table "persistent_hash", force: :cascade do |t|
|
|
16
|
+
t.string "key_name", limit: 191, null: false
|
|
17
|
+
t.text "readable_value", null: false
|
|
18
|
+
t.text "marshalled", null: false
|
|
19
|
+
t.datetime "updated_at", null: false
|
|
20
|
+
t.index ["key_name"], name: "persistent_hash_uniq", unique: true
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
|
2
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
|
3
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
4
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
5
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
6
|
+
Migrating to CreatePersistentHash (20150519145619)
|
|
7
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
8
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
9
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
|
10
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
11
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150519145619"]]
|
|
12
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
|
13
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
14
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
15
|
+
FROM sqlite_master
|
|
16
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
17
|
+
UNION ALL
|
|
18
|
+
SELECT sql
|
|
19
|
+
FROM sqlite_temp_master
|
|
20
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
21
|
+
[0m
|
|
22
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "persistent_hash" WHERE "persistent_hash"."key_name" = ?[0m [["key_name", "number"]]
|
|
23
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
24
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "persistent_hash" ("key_name", "readable_value", "marshalled", "updated_at") VALUES (?, ?, ?, ?)[0m [["key_name", "number"], ["readable_value", "5"], ["marshalled", "BAhpCg==\n"], ["updated_at", "2015-05-19 14:56:41.154133"]]
|
|
25
|
+
[1m[35m (0.8ms)[0m commit transaction
|
|
26
|
+
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM "persistent_hash" WHERE "persistent_hash"."key_name" = ?[0m [["key_name", "number"]]
|
|
27
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
28
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "persistent_hash" ("key_name", "readable_value", "marshalled", "updated_at") VALUES (?, ?, ?, ?)[0m [["key_name", "number"], ["readable_value", "This Fixnum is 5."], ["marshalled", "BAhpCg==\n"], ["updated_at", "2015-05-19 14:56:52.256639"]]
|
|
29
|
+
[1m[35m (0.7ms)[0m commit transaction
|
|
30
|
+
[1m[36mPersistentHash::Hash Load (0.3ms)[0m [1mSELECT "persistent_hash".* FROM "persistent_hash" WHERE "persistent_hash"."key_name" = ? ORDER BY "persistent_hash"."id" ASC LIMIT 1[0m [["key_name", "time"]]
|
|
31
|
+
[1m[35mPersistentHash::Hash Load (0.2ms)[0m SELECT "persistent_hash".* FROM "persistent_hash" WHERE "persistent_hash"."key_name" = ? ORDER BY "persistent_hash"."id" ASC LIMIT 1 [["key_name", "number"]]
|
|
32
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
33
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
34
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
35
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
36
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
37
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
38
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150519145619')[0m
|
|
39
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150518213536')
|
|
40
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
41
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
|
42
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
43
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
44
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
45
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
46
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150519145619')[0m
|
|
47
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150518213536')
|
|
48
|
+
[1m[36m (2.9ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
49
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
50
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
51
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
52
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
53
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
54
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150519145619')[0m
|
|
55
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150518213536')
|
|
56
|
+
[1m[36m (2.2ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
57
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
|
58
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
59
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
|
60
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
|
61
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
|
62
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150519145619')[0m
|
|
63
|
+
[1m[35m (0.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150518213536')
|
|
64
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
65
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
66
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
67
|
+
FROM sqlite_master
|
|
68
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
69
|
+
UNION ALL
|
|
70
|
+
SELECT sql
|
|
71
|
+
FROM sqlite_temp_master
|
|
72
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
73
|
+
|
|
74
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
75
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
76
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
77
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
78
|
+
FROM sqlite_master
|
|
79
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
80
|
+
UNION ALL
|
|
81
|
+
SELECT sql
|
|
82
|
+
FROM sqlite_temp_master
|
|
83
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
84
|
+
[0m
|
|
85
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
86
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
87
|
+
Migrating to ConvertReadableValueToText (20161110111600)
|
|
88
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
89
|
+
[1m[36m (0.3ms)[0m [1mCREATE TEMPORARY TABLE "apersistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
90
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
91
|
+
FROM sqlite_master
|
|
92
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
93
|
+
UNION ALL
|
|
94
|
+
SELECT sql
|
|
95
|
+
FROM sqlite_temp_master
|
|
96
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
97
|
+
|
|
98
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
|
99
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "tindex_apersistent_hash_on_key_name" ON "apersistent_hash" ("key_name")
|
|
100
|
+
[1m[36m (6.0ms)[0m [1mSELECT * FROM "persistent_hash"[0m
|
|
101
|
+
[1m[35m (1.2ms)[0m DROP TABLE "persistent_hash"
|
|
102
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "persistent_hash" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" text NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL) [0m
|
|
103
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
|
104
|
+
FROM sqlite_master
|
|
105
|
+
WHERE name='tindex_apersistent_hash_on_key_name' AND type='index'
|
|
106
|
+
UNION ALL
|
|
107
|
+
SELECT sql
|
|
108
|
+
FROM sqlite_temp_master
|
|
109
|
+
WHERE name='tindex_apersistent_hash_on_key_name' AND type='index'
|
|
110
|
+
|
|
111
|
+
[1m[36m (0.1ms)[0m [1mCREATE UNIQUE INDEX "index_persistent_hash_on_key_name" ON "persistent_hash" ("key_name")[0m
|
|
112
|
+
[1m[35m (0.0ms)[0m SELECT * FROM "apersistent_hash"
|
|
113
|
+
[1m[36m (0.1ms)[0m [1mDROP TABLE "apersistent_hash"[0m
|
|
114
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161110111600"]]
|
|
115
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
|
116
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
|
117
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
|
118
|
+
FROM sqlite_master
|
|
119
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
120
|
+
UNION ALL
|
|
121
|
+
SELECT sql
|
|
122
|
+
FROM sqlite_temp_master
|
|
123
|
+
WHERE name='index_persistent_hash_on_key_name' AND type='index'
|
|
124
|
+
[0m
|
|
125
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
126
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
127
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
128
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
129
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
130
|
+
by setting up a rake task which runs
|
|
131
|
+
|
|
132
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
133
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
134
|
+
|
|
135
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
136
|
+
true by adding the following to your application.rb file:
|
|
137
|
+
|
|
138
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
139
|
+
(called from load at /Users/alex/.rvm/gems/ruby-2.5.5/bin/rake:23)
|
|
140
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
141
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
142
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
143
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
144
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
145
|
+
by setting up a rake task which runs
|
|
146
|
+
|
|
147
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
148
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
149
|
+
|
|
150
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
151
|
+
true by adding the following to your application.rb file:
|
|
152
|
+
|
|
153
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
154
|
+
(called from require at bin/rails:4)
|
|
155
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
156
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
157
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
158
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
159
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-06-18 17:40:02.599955"], ["updated_at", "2019-06-18 17:40:02.599955"]]
|
|
160
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
|
161
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
162
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
163
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
164
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
165
|
+
by setting up a rake task which runs
|
|
166
|
+
|
|
167
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
168
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
169
|
+
|
|
170
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
171
|
+
true by adding the following to your application.rb file:
|
|
172
|
+
|
|
173
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
174
|
+
(called from require at bin/rails:4)
|
|
175
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
176
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
177
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
178
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
179
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
180
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
181
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
182
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
|
183
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
184
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
185
|
+
Migrating to CreatePersistentHash (20150519145619)
|
|
186
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
187
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
188
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
189
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
190
|
+
by setting up a rake task which runs
|
|
191
|
+
|
|
192
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
193
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
194
|
+
|
|
195
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
196
|
+
true by adding the following to your application.rb file:
|
|
197
|
+
|
|
198
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
199
|
+
(called from require at bin/rails:4)
|
|
200
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
201
|
+
Migrating to CreatePersistentHash (20150519145619)
|
|
202
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
203
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
204
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "persistent_hash" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
205
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "persistent_hash_uniq" ON "persistent_hash" ("key_name")[0m
|
|
206
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150519145619"]]
|
|
207
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
|
208
|
+
Migrating to ConvertReadableValueToText (20161110111600)
|
|
209
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
210
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TEMPORARY TABLE "apersistent_hash" ("id" integer NOT NULL PRIMARY KEY, "key_name" varchar NOT NULL, "readable_value" varchar NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
211
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "tpersistent_hash_uniq" ON "apersistent_hash" ("key_name")[0m
|
|
212
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "apersistent_hash" ("id","key_name","readable_value","marshalled","updated_at")
|
|
213
|
+
SELECT "id","key_name","readable_value","marshalled","updated_at" FROM "persistent_hash"[0m
|
|
214
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE "persistent_hash"[0m
|
|
215
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "persistent_hash" ("id" integer NOT NULL PRIMARY KEY, "key_name" varchar NOT NULL, "readable_value" text NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
216
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "persistent_hash_uniq" ON "persistent_hash" ("key_name")[0m
|
|
217
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "persistent_hash" ("id","key_name","readable_value","marshalled","updated_at")
|
|
218
|
+
SELECT "id","key_name","readable_value","marshalled","updated_at" FROM "apersistent_hash"[0m
|
|
219
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE "apersistent_hash"[0m
|
|
220
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20161110111600"]]
|
|
221
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
|
222
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
223
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
224
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-06-18 17:41:35.107605"], ["updated_at", "2019-06-18 17:41:35.107605"]]
|
|
225
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
|
226
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
227
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
228
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
229
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
230
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
231
|
+
by setting up a rake task which runs
|
|
232
|
+
|
|
233
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
234
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
235
|
+
|
|
236
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
237
|
+
true by adding the following to your application.rb file:
|
|
238
|
+
|
|
239
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
240
|
+
(called from require at bin/rails:4)
|
|
241
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
242
|
+
Migrating to Utf8Mb4 (20190618182005)
|
|
243
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
244
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
|
245
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TEMPORARY TABLE "apersistent_hash" ("id" integer NOT NULL PRIMARY KEY, "key_name" varchar NOT NULL, "readable_value" text NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
246
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "tpersistent_hash_uniq" ON "apersistent_hash" ("key_name")[0m
|
|
247
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "apersistent_hash" ("id","key_name","readable_value","marshalled","updated_at")
|
|
248
|
+
SELECT "id","key_name","readable_value","marshalled","updated_at" FROM "persistent_hash"[0m
|
|
249
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP TABLE "persistent_hash"[0m
|
|
250
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE TABLE "persistent_hash" ("id" integer NOT NULL PRIMARY KEY, "key_name" varchar(191) NOT NULL, "readable_value" text NOT NULL, "marshalled" text NOT NULL, "updated_at" datetime NOT NULL)[0m
|
|
251
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "persistent_hash_uniq" ON "persistent_hash" ("key_name")[0m
|
|
252
|
+
[1m[35m (0.0ms)[0m [1m[32mINSERT INTO "persistent_hash" ("id","key_name","readable_value","marshalled","updated_at")
|
|
253
|
+
SELECT "id","key_name","readable_value","marshalled","updated_at" FROM "apersistent_hash"[0m
|
|
254
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE "apersistent_hash"[0m
|
|
255
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190618182005"]]
|
|
256
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
|
257
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
|
258
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
|
259
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
|
260
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
261
|
+
DEPRECATION WARNING: Leaving `ActiveRecord::ConnectionAdapters::SQLite3Adapter.represent_boolean_as_integer`
|
|
262
|
+
set to false is deprecated. SQLite databases have used 't' and 'f' to serialize
|
|
263
|
+
boolean values and must have old data converted to 1 and 0 (its native boolean
|
|
264
|
+
serialization) before setting this flag to true. Conversion can be accomplished
|
|
265
|
+
by setting up a rake task which runs
|
|
266
|
+
|
|
267
|
+
ExampleModel.where("boolean_column = 't'").update_all(boolean_column: 1)
|
|
268
|
+
ExampleModel.where("boolean_column = 'f'").update_all(boolean_column: 0)
|
|
269
|
+
|
|
270
|
+
for all models and all boolean columns, after which the flag must be set to
|
|
271
|
+
true by adding the following to your application.rb file:
|
|
272
|
+
|
|
273
|
+
Rails.application.config.active_record.sqlite3.represent_boolean_as_integer = true
|
|
274
|
+
(called from require at bin/rails:12)
|
|
275
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
276
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
277
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
278
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
279
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
|
280
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
|
281
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
282
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE DATABASE `persistent_hash_development` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
283
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
284
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE DATABASE `persistent_hash_test` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
285
|
+
[1m[35m (1.6ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
286
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
287
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
288
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
289
|
+
[1m[35m (13.3ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL PRIMARY KEY)[0m
|
|
290
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
291
|
+
[1m[35m (3.9ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES (20190618182005)[0m
|
|
292
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES
|
|
293
|
+
(20161110111600),
|
|
294
|
+
(20150518213536);
|
|
295
|
+
|
|
296
|
+
[0m
|
|
297
|
+
[1m[35m (15.6ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)[0m
|
|
298
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
299
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
300
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2019-06-18 19:12:09', '2019-06-18 19:12:09')[0m
|
|
301
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
302
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
303
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
304
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
305
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
306
|
+
[1m[35m (3.9ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
307
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
308
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
309
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
310
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
|
311
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.9ms)[0m [1m[33mUPDATE `ar_internal_metadata` SET `value` = 'development', `updated_at` = '2019-06-18 19:12:09' WHERE `ar_internal_metadata`.`key` = 'environment'[0m
|
|
312
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
313
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
314
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
315
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.2ms)[0m [1m[33mUPDATE `ar_internal_metadata` SET `value` = 'test' WHERE `ar_internal_metadata`.`key` = 'environment'[0m
|
|
316
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
317
|
+
[1m[35m (4.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
318
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE DATABASE `persistent_hash_development` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
319
|
+
[1m[35m (0.2ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
320
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE DATABASE `persistent_hash_test` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
321
|
+
[1m[35m (0.7ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
322
|
+
[1m[35m (0.4ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
323
|
+
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
324
|
+
[1m[35m (61.8ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
325
|
+
[1m[35m (28.8ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL PRIMARY KEY)[0m
|
|
326
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
327
|
+
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES (20190618182005)[0m
|
|
328
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES
|
|
329
|
+
(20161110111600),
|
|
330
|
+
(20150518213536);
|
|
331
|
+
|
|
332
|
+
[0m
|
|
333
|
+
[1m[35m (27.4ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)[0m
|
|
334
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
335
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
336
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.0ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2021-12-31 19:27:51', '2021-12-31 19:27:51')[0m
|
|
337
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
|
338
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
339
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
|
340
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
|
341
|
+
[1m[35m (0.8ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
342
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
343
|
+
[1m[35m (24.5ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
344
|
+
[1m[35m (26.9ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL PRIMARY KEY)[0m
|
|
345
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
346
|
+
[1m[35m (1.3ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES (20190618182005)[0m
|
|
347
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES
|
|
348
|
+
(20161110111600),
|
|
349
|
+
(20150518213536);
|
|
350
|
+
|
|
351
|
+
[0m
|
|
352
|
+
[1m[35m (23.6ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL)[0m
|
|
353
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
354
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
355
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2021-12-31 19:27:51', '2021-12-31 19:27:51')[0m
|
|
356
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
|
357
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT `ar_internal_metadata`.* FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' LIMIT 1[0m
|
|
358
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
|
359
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.7ms)[0m [1m[33mUPDATE `ar_internal_metadata` SET `value` = 'test' WHERE `ar_internal_metadata`.`key` = 'environment'[0m
|
|
360
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
|
361
|
+
[1m[35m (0.3ms)[0m [1m[35mSET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483[0m
|
|
362
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
363
|
+
Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
|
|
364
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE DATABASE `persistent_hash_development` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
365
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE DATABASE `persistent_hash_test` DEFAULT COLLATE `utf8mb4_unicode_ci`[0m
|
|
366
|
+
Generating image variants require the image_processing gem. Please add `gem "image_processing", "~> 1.2"` to your Gemfile or set `config.active_storage.variant_processor = :disabled`.
|
|
367
|
+
[1m[35m (1.3ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
368
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime(6) NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
369
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL PRIMARY KEY)[0m
|
|
370
|
+
[1m[36mActiveRecord::SchemaMigration Load (8.9ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
371
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES (20190618182005)[0m
|
|
372
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES
|
|
373
|
+
(20161110111600),
|
|
374
|
+
(20150518213536);[0m
|
|
375
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL)[0m
|
|
376
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
377
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.9ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2026-06-08 23:25:16.434506', '2026-06-08 23:25:16.434510')[0m
|
|
378
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
379
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'schema_sha1' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
380
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.0ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('schema_sha1', 'a0602c99b3b39f3943e95d2bd34343a09902d8ed', '2026-06-08 23:25:16.439218', '2026-06-08 23:25:16.439220')[0m
|
|
381
|
+
[1m[35m (2.1ms)[0m [1m[35mDROP TABLE IF EXISTS `persistent_hash` CASCADE[0m
|
|
382
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE TABLE `persistent_hash` (`id` bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, `key_name` varchar(191) NOT NULL, `readable_value` text NOT NULL, `marshalled` text NOT NULL, `updated_at` datetime(6) NOT NULL, UNIQUE INDEX `persistent_hash_uniq` (`key_name`))[0m
|
|
383
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL PRIMARY KEY)[0m
|
|
384
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC[0m
|
|
385
|
+
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES (20190618182005)[0m
|
|
386
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO `schema_migrations` (version) VALUES
|
|
387
|
+
(20161110111600),
|
|
388
|
+
(20150518213536);[0m
|
|
389
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE `ar_internal_metadata` (`key` varchar(255) NOT NULL PRIMARY KEY, `value` varchar(255), `created_at` datetime(6) NOT NULL, `updated_at` datetime(6) NOT NULL)[0m
|
|
390
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
391
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.9ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('environment', 'development', '2026-06-08 23:25:16.480545', '2026-06-08 23:25:16.480548')[0m
|
|
392
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'environment' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
393
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.0ms)[0m [1m[33mUPDATE `ar_internal_metadata` SET `ar_internal_metadata`.`value` = 'test', `ar_internal_metadata`.`updated_at` = '2026-06-08 23:25:16.484222' WHERE `ar_internal_metadata`.`key` = 'environment'[0m
|
|
394
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT * FROM `ar_internal_metadata` WHERE `ar_internal_metadata`.`key` = 'schema_sha1' ORDER BY `ar_internal_metadata`.`key` ASC LIMIT 1[0m
|
|
395
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.7ms)[0m [1m[32mINSERT INTO `ar_internal_metadata` (`key`, `value`, `created_at`, `updated_at`) VALUES ('schema_sha1', 'a0602c99b3b39f3943e95d2bd34343a09902d8ed', '2026-06-08 23:25:16.485921', '2026-06-08 23:25:16.485924')[0m
|
|
396
|
+
[1m[36mPersistentHash::Hash Load (0.8ms)[0m [1m[34mSELECT `persistent_hash`.`marshalled` FROM `persistent_hash` WHERE `persistent_hash`.`key_name` = 'a' ORDER BY `persistent_hash`.`id` ASC LIMIT 1[0m
|
|
397
|
+
[1m[36mPersistentHash::Hash Load (0.5ms)[0m [1m[37mSELECT `persistent_hash`.* FROM `persistent_hash` WHERE `persistent_hash`.`key_name` = 'a' ORDER BY `persistent_hash`.`id` ASC LIMIT 1 FOR UPDATE[0m
|
|
398
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
|
399
|
+
[1m[36mPersistentHash::Hash Create (0.9ms)[0m [1m[32mINSERT INTO `persistent_hash` (`key_name`, `readable_value`, `marshalled`, `updated_at`) VALUES ('a', '5', 'BAhpCg==\n', '2026-06-08 23:25:51.408520')[0m
|
|
400
|
+
[1m[36mTRANSACTION (1.1ms)[0m [1m[35mCOMMIT[0m
|
|
401
|
+
[1m[36mPersistentHash::Hash Load (0.5ms)[0m [1m[37mSELECT `persistent_hash`.* FROM `persistent_hash` WHERE `persistent_hash`.`key_name` = 'a' ORDER BY `persistent_hash`.`id` ASC LIMIT 1 FOR UPDATE[0m
|
|
402
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
|
403
|
+
[1m[36mPersistentHash::Hash Update (0.9ms)[0m [1m[33mUPDATE `persistent_hash` SET `persistent_hash`.`readable_value` = '{a: 1}', `persistent_hash`.`marshalled` = 'BAh7BjoGYWkG\n', `persistent_hash`.`updated_at` = '2026-06-08 23:25:56.668733' WHERE `persistent_hash`.`id` = 1[0m
|
|
404
|
+
[1m[36mTRANSACTION (0.9ms)[0m [1m[35mCOMMIT[0m
|
|
405
|
+
[1m[36mPersistentHash::Hash Load (0.5ms)[0m [1m[34mSELECT `persistent_hash`.`marshalled` FROM `persistent_hash` WHERE `persistent_hash`.`key_name` = 'a' ORDER BY `persistent_hash`.`id` ASC LIMIT 1[0m
|