protokoll 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/protokoll/counter.rb +11 -6
- data/lib/protokoll/formater.rb +19 -17
- data/lib/protokoll/version.rb +1 -1
- data/test/dummy/app/assets/config/manifest.js +3 -0
- data/test/dummy/config/application.rb +0 -6
- data/test/dummy/config/environments/development.rb +0 -6
- data/test/dummy/config/environments/production.rb +0 -15
- data/test/dummy/config/environments/test.rb +0 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20110923024431_create_protocols.rb +1 -1
- data/test/dummy/db/migrate/20110928013630_create_calls.rb +1 -1
- data/test/dummy/db/migrate/20120222164124_create_custom_auto_increments.rb +1 -1
- data/test/dummy/db/migrate/20160310030821_add_scope_by_to_custom_auto_increments.rb +1 -1
- data/test/dummy/db/schema.rb +21 -24
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +84 -39
- data/test/dummy/log/test.log +35502 -3031
- data/test/dummy/tmp/development_secret.txt +1 -0
- data/test/protokoll_test.rb +5 -5
- metadata +35 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7464d8487d2b115287296f811371599a4bfa4446e4a9e73d30f589282d737bad
|
4
|
+
data.tar.gz: e4787009b243f6ed2fa8543ae91f629fa38daa1c026216f2aabe3f26664a65b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53228acd08a4d8e6939e6e0eb14feadd9c878054c5762080352c50f7d9afef511377aca5d7b90dc8abaeb74b1bdca31454eab41f138b800278e930a4212a0f5e
|
7
|
+
data.tar.gz: 01d35c2c25341a1461def0aebe4405ed9de51d0349e64c3f315aaca31b65fc35bb53181ad9afeba621c0104e72f9dcbe546b1fd0d12d21cc548983192c9774b9
|
data/lib/protokoll/counter.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'active_record'
|
2
4
|
|
3
5
|
module Protokoll
|
@@ -30,18 +32,21 @@ module Protokoll
|
|
30
32
|
end
|
31
33
|
|
32
34
|
def self.outdated?(record, options)
|
33
|
-
|
35
|
+
event = update_event(options)
|
36
|
+
return false if event.empty?
|
37
|
+
|
38
|
+
Time.now.utc.strftime(event).to_i > record.updated_at.strftime(event).to_i
|
34
39
|
end
|
35
40
|
|
36
41
|
def self.update_event(options)
|
37
42
|
pattern = options[:pattern]
|
38
43
|
event = String.new
|
39
44
|
|
40
|
-
event
|
41
|
-
event
|
42
|
-
event
|
43
|
-
event
|
44
|
-
event
|
45
|
+
event << "%Y" if pattern.include? "%y" or pattern.include? "%Y"
|
46
|
+
event << "%m" if pattern.include? "%m"
|
47
|
+
event << "%H" if pattern.include? "%H"
|
48
|
+
event << "%M" if pattern.include? "%M"
|
49
|
+
event << "%d" if pattern.include? "%d"
|
45
50
|
event
|
46
51
|
end
|
47
52
|
end
|
data/lib/protokoll/formater.rb
CHANGED
@@ -1,32 +1,33 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
3
|
module Protokoll
|
3
4
|
class Formater
|
4
5
|
def format(number, options)
|
5
6
|
@options = options
|
6
|
-
|
7
|
+
|
7
8
|
build(number)
|
8
9
|
end
|
9
|
-
|
10
|
-
private
|
11
|
-
|
10
|
+
|
11
|
+
private
|
12
|
+
|
12
13
|
# gets the next number.
|
13
14
|
# it prepends the prefix + counter + sufix
|
14
15
|
# ex:
|
15
|
-
# "%Y####BANK"
|
16
|
+
# "%Y####BANK"
|
16
17
|
# %Y => prefix (year)
|
17
18
|
# #### => counter (starts with 0001)
|
18
19
|
# BANK => sufix
|
19
|
-
#
|
20
|
+
#
|
20
21
|
# if we are in 2011, the first model to be saved will get "20110001BANK"
|
21
22
|
# the next model to be saved will get "20110002BANK", "20110003BANK"...
|
22
23
|
#
|
23
24
|
# number => is the counter
|
24
|
-
#
|
25
|
-
# next_custom_number(1)
|
25
|
+
#
|
26
|
+
# next_custom_number(1)
|
26
27
|
# => "20110001BANK"
|
27
28
|
def build(number)
|
28
|
-
prefix(@options[:pattern]).to_s +
|
29
|
-
counter(@options[:pattern], number).to_s +
|
29
|
+
prefix(@options[:pattern]).to_s +
|
30
|
+
counter(@options[:pattern], number).to_s +
|
30
31
|
sufix(@options[:pattern]).to_s
|
31
32
|
end
|
32
33
|
|
@@ -61,12 +62,13 @@ module Protokoll
|
|
61
62
|
end
|
62
63
|
|
63
64
|
def expand_times(pattern)
|
64
|
-
pattern.
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
65
|
+
pat = pattern.dup # pattern is a frozen string.
|
66
|
+
pat.sub!("%y", Time.now.strftime("%y"))
|
67
|
+
pat.sub!("%Y", Time.now.strftime("%Y"))
|
68
|
+
pat.sub!("%d", Time.now.strftime("%d"))
|
69
|
+
pat.sub!("%m", Time.now.strftime("%m"))
|
70
|
+
pat.sub!("%M", Time.now.strftime("%M"))
|
71
|
+
pat.sub("%H", Time.now.strftime("%H"))
|
70
72
|
end
|
71
73
|
|
72
74
|
def digits_size(pattern)
|
@@ -75,5 +77,5 @@ module Protokoll
|
|
75
77
|
end
|
76
78
|
|
77
79
|
|
78
|
-
end
|
80
|
+
end
|
79
81
|
end
|
data/lib/protokoll/version.rb
CHANGED
@@ -34,12 +34,6 @@ module Dummy
|
|
34
34
|
|
35
35
|
# Configure sensitive parameters which will be filtered from the log file.
|
36
36
|
config.filter_parameters += [:password]
|
37
|
-
|
38
|
-
# Enable the asset pipeline
|
39
|
-
config.assets.enabled = true
|
40
|
-
|
41
|
-
# Version of your assets, change this if you want to expire all your assets
|
42
|
-
config.assets.version = '1.0'
|
43
37
|
end
|
44
38
|
end
|
45
39
|
|
@@ -19,11 +19,5 @@ Dummy::Application.configure do
|
|
19
19
|
# Only use best-standards-support built into browsers
|
20
20
|
config.action_dispatch.best_standards_support = :builtin
|
21
21
|
|
22
|
-
# Do not compress assets
|
23
|
-
config.assets.compress = false
|
24
|
-
|
25
|
-
# Expands the lines which load the assets
|
26
|
-
config.assets.debug = true
|
27
|
-
|
28
22
|
config.eager_load = false
|
29
23
|
end
|
@@ -8,21 +8,6 @@ Dummy::Application.configure do
|
|
8
8
|
config.consider_all_requests_local = false
|
9
9
|
config.action_controller.perform_caching = true
|
10
10
|
|
11
|
-
# Disable Rails's static asset server (Apache or nginx will already do this)
|
12
|
-
config.serve_static_assets = false
|
13
|
-
|
14
|
-
# Compress JavaScripts and CSS
|
15
|
-
config.assets.compress = true
|
16
|
-
|
17
|
-
# Don't fallback to assets pipeline if a precompiled asset is missed
|
18
|
-
config.assets.compile = false
|
19
|
-
|
20
|
-
# Generate digests for assets URLs
|
21
|
-
config.assets.digest = true
|
22
|
-
|
23
|
-
# Defaults to Rails.root.join("public/assets")
|
24
|
-
# config.assets.manifest = YOUR_PATH
|
25
|
-
|
26
11
|
# Specifies the header that your server uses for sending files
|
27
12
|
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
28
13
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
@@ -34,9 +34,6 @@ Dummy::Application.configure do
|
|
34
34
|
# Print deprecation notices to the stderr
|
35
35
|
config.active_support.deprecation = :stderr
|
36
36
|
|
37
|
-
# Allow pass debug_assets=true as a query parameter to load pages with unpackaged assets
|
38
|
-
config.assets.allow_debugging = true
|
39
|
-
|
40
37
|
config.eager_load = false
|
41
38
|
|
42
39
|
config.active_support.test_order = :random
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class AddScopeByToCustomAutoIncrements < ActiveRecord::Migration
|
1
|
+
class AddScopeByToCustomAutoIncrements < ActiveRecord::Migration[4.2]
|
2
2
|
def up
|
3
3
|
add_column :custom_auto_increments, :counter_model_scope, :string
|
4
4
|
add_index :custom_auto_increments, [:counter_model_name, :counter_model_scope],
|
data/test/dummy/db/schema.rb
CHANGED
@@ -1,41 +1,38 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
5
4
|
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
# from scratch.
|
10
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
11
10
|
#
|
12
11
|
# It's strongly recommended that you check this file into your version control system.
|
13
12
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
15
|
-
|
13
|
+
ActiveRecord::Schema[7.0].define(version: 2016_03_10_030821) do
|
16
14
|
create_table "calls", force: :cascade do |t|
|
17
|
-
t.string
|
18
|
-
t.datetime "created_at"
|
19
|
-
t.datetime "updated_at"
|
15
|
+
t.string "number"
|
16
|
+
t.datetime "created_at", precision: nil
|
17
|
+
t.datetime "updated_at", precision: nil
|
20
18
|
end
|
21
19
|
|
22
20
|
create_table "custom_auto_increments", force: :cascade do |t|
|
23
|
-
t.string
|
24
|
-
t.integer
|
25
|
-
t.datetime "created_at"
|
26
|
-
t.datetime "updated_at"
|
27
|
-
t.string
|
21
|
+
t.string "counter_model_name"
|
22
|
+
t.integer "counter", default: 0
|
23
|
+
t.datetime "created_at", precision: nil
|
24
|
+
t.datetime "updated_at", precision: nil
|
25
|
+
t.string "counter_model_scope"
|
26
|
+
t.index ["counter_model_name", "counter_model_scope"], name: "counter_model_name_scope", unique: true
|
27
|
+
t.index ["counter_model_name"], name: "index_custom_auto_increments_on_counter_model_name"
|
28
28
|
end
|
29
29
|
|
30
|
-
add_index "custom_auto_increments", ["counter_model_name", "counter_model_scope"], name: "counter_model_name_scope", unique: true
|
31
|
-
add_index "custom_auto_increments", ["counter_model_name"], name: "index_custom_auto_increments_on_counter_model_name"
|
32
|
-
|
33
30
|
create_table "protocols", force: :cascade do |t|
|
34
|
-
t.string
|
35
|
-
t.string
|
36
|
-
t.string
|
37
|
-
t.datetime "created_at"
|
38
|
-
t.datetime "updated_at"
|
31
|
+
t.string "number"
|
32
|
+
t.string "context"
|
33
|
+
t.string "context_2"
|
34
|
+
t.datetime "created_at", precision: nil
|
35
|
+
t.datetime "updated_at", precision: nil
|
39
36
|
end
|
40
37
|
|
41
38
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,43 +1,88 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
2
|
+
`legacy_connection_handling` to `false` in your application.
|
3
|
+
|
4
|
+
The new connection handling does not support `connection_handlers`
|
5
|
+
getter and setter.
|
6
|
+
|
7
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
8
|
+
(called from <top (required)> at /Users/celsodantas/src/github.com/protokoll/test/dummy/config/environment.rb:5)
|
9
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
10
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
11
|
+
[1m[35m (0.5ms)[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
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
13
|
Migrating to CreateProtocols (20110923024431)
|
6
|
-
[1m[
|
7
|
-
|
8
|
-
[1m[
|
9
|
-
[1m[
|
10
|
-
[1m[35m (0.8ms)[0m commit transaction
|
14
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
15
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "protocols" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "context" varchar, "context_2" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
16
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20110923024431"]]
|
17
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
11
18
|
Migrating to CreateCalls (20110928013630)
|
12
|
-
[1m[
|
13
|
-
|
14
|
-
[1m[
|
15
|
-
[1m[
|
16
|
-
[1m[35m (0.7ms)[0m commit transaction
|
19
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
20
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "calls" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20110928013630"]]
|
22
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[36mcommit transaction[0m
|
17
23
|
Migrating to CreateCustomAutoIncrements (20120222164124)
|
18
|
-
[1m[
|
19
|
-
|
20
|
-
[1m[35m (0.2ms)[0m
|
21
|
-
[1m[
|
22
|
-
[1m[
|
23
|
-
[1m[
|
24
|
-
|
25
|
-
[1m[
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
24
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
25
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "custom_auto_increments"[0m
|
26
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "custom_auto_increments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "counter_model_name" varchar, "counter" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)[0m
|
27
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE INDEX "index_custom_auto_increments_on_counter_model_name" ON "custom_auto_increments" ("counter_model_name")[0m
|
28
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120222164124"]]
|
29
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[36mcommit transaction[0m
|
30
|
+
Migrating to AddScopeByToCustomAutoIncrements (20160310030821)
|
31
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
32
|
+
[1m[35m (0.2ms)[0m [1m[35mALTER TABLE "custom_auto_increments" ADD "counter_model_scope" varchar[0m
|
33
|
+
[1m[35m (0.0ms)[0m [1m[35mCREATE UNIQUE INDEX "counter_model_name_scope" ON "custom_auto_increments" ("counter_model_name", "counter_model_scope")[0m
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.0ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160310030821"]]
|
35
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
36
|
+
[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]]
|
37
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
38
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-25 13:10:51.386338"], ["updated_at", "2022-03-25 13:10:51.386338"]]
|
39
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[36mcommit transaction[0m
|
40
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
42
|
+
DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
|
43
|
+
`legacy_connection_handling` to `false` in your application.
|
44
|
+
|
45
|
+
The new connection handling does not support `connection_handlers`
|
46
|
+
getter and setter.
|
47
|
+
|
48
|
+
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
|
49
|
+
(called from <top (required)> at /Users/celsodantas/src/github.com/protokoll/test/dummy/config/environment.rb:5)
|
50
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
51
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
52
|
+
[1m[36mActiveRecord::InternalMetadata Pluck (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
53
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
54
|
+
[1m[36mActiveRecord::InternalMetadata Pluck (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
55
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
56
|
+
[1m[36mActiveRecord::InternalMetadata Pluck (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
57
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
58
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
59
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "calls"[0m
|
60
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "calls" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
61
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "custom_auto_increments"[0m
|
62
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "custom_auto_increments" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "counter_model_name" varchar, "counter" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "counter_model_scope" varchar)[0m
|
63
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE UNIQUE INDEX "counter_model_name_scope" ON "custom_auto_increments" ("counter_model_name", "counter_model_scope")[0m
|
64
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_custom_auto_increments_on_counter_model_name" ON "custom_auto_increments" ("counter_model_name")[0m
|
65
|
+
[1m[35m (0.0ms)[0m [1m[35mDROP TABLE IF EXISTS "protocols"[0m
|
66
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "protocols" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "context" varchar, "context_2" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
67
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
68
|
+
[1m[36mActiveRecord::SchemaMigration Pluck (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
69
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20160310030821)[0m
|
70
|
+
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
71
|
+
(20110923024431),
|
72
|
+
(20110928013630),
|
73
|
+
(20120222164124);
|
74
|
+
|
32
75
|
[0m
|
33
|
-
[1m[
|
34
|
-
[1m[
|
35
|
-
[1m[
|
36
|
-
[1m[
|
37
|
-
[1m[
|
38
|
-
[1m[
|
39
|
-
[1m[
|
40
|
-
[1m[
|
41
|
-
[1m[
|
42
|
-
[1m[
|
43
|
-
[1m[
|
76
|
+
[1m[35m (0.4ms)[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
|
77
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
78
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
79
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2022-03-25 13:10:52.110452"], ["updated_at", "2022-03-25 13:10:52.110452"]]
|
80
|
+
[1m[36mTRANSACTION (0.4ms)[0m [1m[36mcommit transaction[0m
|
81
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
82
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
83
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2022-03-25 13:10:52.111594"], ["key", "environment"]]
|
84
|
+
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
85
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
86
|
+
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
87
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "schema_sha1"], ["value", "548cf97f582536c097c1a7c1626a51c80e0a4672"], ["created_at", "2022-03-25 13:10:52.112706"], ["updated_at", "2022-03-25 13:10:52.112706"]]
|
88
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[36mcommit transaction[0m
|