cmor_carousels 0.0.6.pre → 0.0.7.pre
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 +4 -4
- data/README.rdoc +2 -2
- data/app/models/cmor/carousels/item_detail.rb +2 -0
- data/app/view_helpers/cmor/carousels/application_view_helper.rb +2 -2
- data/app/views/cmor/carousels/application_view_helper/_render.html.erb +1 -1
- data/app/views/cmor/carousels/application_view_helper/_render.html.haml~ +1 -1
- data/lib/cmor/carousels/configuration.rb +0 -4
- data/lib/cmor_carousels.rb +2 -2
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{20190331085346_create_active_storage_tables.active_storage.rb → 20190424131934_create_active_storage_tables.active_storage.rb} +0 -0
- data/spec/dummy/db/migrate/{20190331085416_create_cmor_carousels_carousels.cmor_carousels.rb → 20190424131957_create_cmor_carousels_carousels.cmor_carousels.rb} +0 -0
- data/spec/dummy/db/migrate/{20190331085417_create_cmor_carousels_item_details.cmor_carousels.rb → 20190424131958_create_cmor_carousels_item_details.cmor_carousels.rb} +0 -0
- data/spec/dummy/db/schema.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +68 -68
- data/spec/dummy/log/test.log +382 -391
- data/spec/dummy/tmp/development_secret.txt +1 -1
- data/spec/dummy/tmp/storage/{26/AE/26AEgTpLjdUEkfgwDMYvsnMC → 2F/LD/2FLDTKPxMZV6ge31BAXBg8bW} +0 -0
- data/spec/dummy/tmp/storage/{6C/k7/6Ck7TjB8q5XHcvFuKurZjF85 → Ek/b3/Ekb3S582aUkjQ4LU2wbS94pJ} +0 -0
- data/spec/dummy/tmp/storage/{8s/yQ/8syQAvbeB2riQeBX4yE3ZBA6 → F7/1v/F71v6N241KPcsuWeR5y1epas} +0 -0
- data/spec/dummy/tmp/storage/{Je/hz/JehzP6iuNXDQv4ER8G3xtxKu → Gy/DX/GyDXpaitLESY53TS5hB4ECsb} +0 -0
- data/spec/dummy/tmp/storage/{L2/6b/L26bUe4BVrLHtDA5k4PyH55Y → J8/tA/J8tAdKVE1RTV6kyzKJnUdrsX} +0 -0
- data/spec/dummy/tmp/storage/{b6/Qq/b6QqQjSv3uKCsqkxdh6ad7gP → ML/zF/MLzFDG6KotBpEcjqyp5ssz1T} +0 -0
- data/spec/dummy/tmp/storage/{cH/4t/cH4tfkxybxrK48RcN3AfPW5d → RQ/XB/RQXB3kswt1UE4qK2QBWU65h8} +0 -0
- data/spec/dummy/tmp/storage/{ca/g3/cag3X6hn5ghy7jyEXcutEeoG → T1/Wg/T1WggUyWv27Km7VcDu6VTjGx} +0 -0
- data/spec/dummy/tmp/storage/{oA/Vh/oAVh3cV4vinC3Gjpc2XEKY6Y → bF/mS/bFmSAspcpNqQW4NcZ2BMJF4Q} +0 -0
- data/spec/dummy/tmp/storage/{pE/aN/pEaNyVxKkzxyGvC3hAEX8cKN → cY/C4/cYC44zkZ9CzKkhwvDSJ6vduS} +0 -0
- data/spec/dummy/tmp/storage/{q5/M4/q5M4DG6JdJNWrZgbiVyZHLb5 → g8/H5/g8H5qQAAxYkVHetonkS1ouiE} +0 -0
- data/spec/dummy/tmp/storage/{qF/Xd/qFXdkBHyZBSkLF3J9LzXb3hp → sy/pd/sypdAkZ3jQbQFoPCFx7PaTeM} +0 -0
- data/spec/dummy/tmp/storage/{t2/A8/t2A8wMukKNjuCnAwV1hQ4hcn → vg/Gf/vgGfVjnoFRSknpbbbQxWBTvV} +0 -0
- data/spec/dummy/tmp/storage/{xk/pK/xkpK28DBGFmAkuYh89UAhZhe → xV/Tq/xVTqSvHQrcnDM4QmxCCdw275} +0 -0
- data/spec/factories/cmor/carousels/carousels.rb +0 -4
- data/spec/factories/cmor/carousels/item_details.rb +1 -1
- metadata +36 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4726bf0305356349e54b2404faf35cb17faf897957e9862fbdcbc946a736289d
|
4
|
+
data.tar.gz: 4938c388337e31bb61e2ad93e187d01dcf03902f83d965441f7b7b4d8f4fc4bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03499695adf80534f644bce7b7da02ca2c8e22a79ba9629d8cc7041f98c5c66e8c00b382748bcf40e5bce486c9ca2c7511661133a3cb514dc4a48d23b1a2247f'
|
7
|
+
data.tar.gz: a1a7f14359fb540adbd07dc06c8e1f9014a1e034209bd0e2e5ad77cf31f16fa366b53d6905d675f6337f4a2ea930545e3d4f9c40048a49d309f02ae7b656e32e
|
data/README.rdoc
CHANGED
@@ -29,13 +29,13 @@ Add the helper to your controller:
|
|
29
29
|
|
30
30
|
# app/controllers/application_controller.rb
|
31
31
|
class ApplicationController < ActionController::Base
|
32
|
-
|
32
|
+
view_helper Cmor::Carousels::ApplicationViewHelper, as: :carousel_helper
|
33
33
|
#...
|
34
34
|
end
|
35
35
|
|
36
36
|
Use the helper to display a carousel:
|
37
37
|
|
38
|
-
<%= render_carousel 'My Carousel' %>
|
38
|
+
<%= carousel_helper(self).render_carousel 'My Carousel' %>
|
39
39
|
|
40
40
|
= License
|
41
41
|
|
@@ -2,11 +2,13 @@ module Cmor
|
|
2
2
|
module Carousels
|
3
3
|
class ItemDetail < ApplicationRecord
|
4
4
|
include ActsAsPublished::ActiveRecord
|
5
|
+
include Markup::Rails::ActiveRecord
|
5
6
|
|
6
7
|
belongs_to :carousel
|
7
8
|
belongs_to :asset, class_name: 'ActiveStorage::Attachment', dependent: :destroy
|
8
9
|
|
9
10
|
acts_as_list scope: :carousel
|
11
|
+
acts_as_markup :description, Cmor::Core::Configuration.default_markup_options
|
10
12
|
|
11
13
|
def human
|
12
14
|
"#{carousel.class.model_name.human} #{carousel.human} - #{self.class.model_name.human} #{id}"
|
@@ -11,9 +11,9 @@ module Cmor
|
|
11
11
|
# Example:
|
12
12
|
#
|
13
13
|
# # This will render a bootstrap 4 compatible carousel
|
14
|
-
# = carousels_helper(self).
|
14
|
+
# = carousels_helper(self).render_carousel(:main, autostart: true, interval: 5.0, variant_options: { resize: "1920x1080" })
|
15
15
|
#
|
16
|
-
def
|
16
|
+
def render_carousel(identifier, options = {})
|
17
17
|
options.reverse_merge!(autostart: true, interval: 5.0, keyboard: true, pause: :hover, ride: false, wrap: true, controls: true)
|
18
18
|
carousel_options = options.slice(:autostart, :interval, :pause, :ride, :wrap)
|
19
19
|
data_attributes = carousel_options_to_data_attributes(carousel_options)
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<img class="d-block w-100" src="<%= main_app.url_for(item_detail.asset.variant(variant_options)) %>">
|
11
11
|
<% if item_detail.description.present? %>
|
12
12
|
<div class="carousel-caption d-none d-md-block">
|
13
|
-
<%= markup_helper(self).
|
13
|
+
<%= markup_helper(self).to_html(item_detail, :description) %>
|
14
14
|
</div>
|
15
15
|
<% end %>
|
16
16
|
</div>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
= bootstrap_carousel(autostart: carousel_options[:autostart], interval: (carousel_options[:interval] * 1000), id: dom_id(carousel)) do |c|
|
2
2
|
- carousel.item_details.each do |item_detail|
|
3
|
-
- c.add_item(image_source: main_app.url_for(item_detail.asset.variant(variant_options)), caption:
|
3
|
+
- c.add_item(image_source: main_app.url_for(item_detail.asset.variant(variant_options)), caption: item_detail.body)(:html)
|
data/lib/cmor_carousels.rb
CHANGED
Binary file
|
File without changes
|
File without changes
|
File without changes
|
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.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2019_04_24_131958) do
|
14
14
|
|
15
15
|
create_table "active_storage_attachments", force: :cascade do |t|
|
16
16
|
t.string "name", null: false
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,122 +1,122 @@
|
|
1
|
-
[1m[35m (0.
|
1
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
2
|
↳ bin/rails:4
|
3
|
-
[1m[35m (
|
3
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4
4
|
↳ bin/rails:4
|
5
|
-
[1m[35m (
|
5
|
+
[1m[35m (3.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
|
6
6
|
↳ bin/rails:4
|
7
|
-
[1m[35m (0.
|
7
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
8
8
|
↳ bin/rails:4
|
9
|
-
Migrating to CreateActiveStorageTables (
|
10
|
-
[1m[35m (0.
|
9
|
+
Migrating to CreateActiveStorageTables (20190424131934)
|
10
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
11
11
|
↳ bin/rails:4
|
12
|
-
[1m[35m (
|
13
|
-
↳ db/migrate/
|
14
|
-
[1m[35m (0.
|
15
|
-
↳ db/migrate/
|
16
|
-
[1m[35m (0.
|
12
|
+
[1m[35m (0.5ms)[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, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
13
|
+
↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:4
|
14
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
15
|
+
↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:4
|
16
|
+
[1m[35m (0.3ms)[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" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL, CONSTRAINT "fk_rails_c3b3935057"
|
17
17
|
FOREIGN KEY ("blob_id")
|
18
18
|
REFERENCES "active_storage_blobs" ("id")
|
19
19
|
)[0m
|
20
|
-
↳ db/migrate/
|
21
|
-
[1m[35m (0.
|
22
|
-
↳ db/migrate/
|
23
|
-
[1m[35m (0.
|
24
|
-
↳ db/migrate/
|
25
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
20
|
+
↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
|
21
|
+
[1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
22
|
+
↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
|
23
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
24
|
+
↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
|
25
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190424131934"]]
|
26
26
|
↳ bin/rails:4
|
27
|
-
[1m[35m (
|
27
|
+
[1m[35m (3.9ms)[0m [1m[36mcommit transaction[0m
|
28
28
|
↳ bin/rails:4
|
29
|
-
Migrating to CreateCmorCarouselsCarousels (
|
30
|
-
[1m[35m (0.
|
29
|
+
Migrating to CreateCmorCarouselsCarousels (20190424131957)
|
30
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
31
31
|
↳ bin/rails:4
|
32
|
-
[1m[35m (
|
33
|
-
↳ db/migrate/
|
34
|
-
[1m[36mActiveRecord::SchemaMigration Create (
|
32
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
33
|
+
↳ db/migrate/20190424131957_create_cmor_carousels_carousels.cmor_carousels.rb:4
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190424131957"]]
|
35
35
|
↳ bin/rails:4
|
36
|
-
[1m[35m (
|
36
|
+
[1m[35m (4.0ms)[0m [1m[36mcommit transaction[0m
|
37
37
|
↳ bin/rails:4
|
38
|
-
Migrating to CreateCmorCarouselsItemDetails (
|
39
|
-
[1m[35m (0.
|
38
|
+
Migrating to CreateCmorCarouselsItemDetails (20190424131958)
|
39
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
40
40
|
↳ bin/rails:4
|
41
|
-
[1m[35m (
|
42
|
-
↳ db/migrate/
|
43
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.
|
41
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "cmor_carousels_item_details" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "carousel_id" integer, "asset_id" integer, "url" varchar, "description" text, "position" integer, "published_at" datetime, "created_at" datetime, "updated_at" datetime)[0m
|
42
|
+
↳ db/migrate/20190424131958_create_cmor_carousels_item_details.cmor_carousels.rb:4
|
43
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20190424131958"]]
|
44
44
|
↳ bin/rails:4
|
45
|
-
[1m[35m (
|
45
|
+
[1m[35m (4.2ms)[0m [1m[36mcommit transaction[0m
|
46
46
|
↳ bin/rails:4
|
47
|
-
[1m[36mActiveRecord::InternalMetadata Load (
|
47
|
+
[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]]
|
48
48
|
↳ bin/rails:4
|
49
|
-
[1m[35m (0.
|
49
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50
50
|
↳ bin/rails:4
|
51
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.
|
51
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-04-24 13:19:57.995464"], ["updated_at", "2019-04-24 13:19:57.995464"]]
|
52
52
|
↳ bin/rails:4
|
53
|
-
[1m[35m (
|
53
|
+
[1m[35m (4.3ms)[0m [1m[36mcommit transaction[0m
|
54
54
|
↳ bin/rails:4
|
55
|
-
[1m[35m (0.
|
55
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
56
56
|
↳ bin/rails:4
|
57
|
-
[1m[35m (0.
|
57
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
58
58
|
↳ bin/rails:4
|
59
|
-
[1m[35m (
|
59
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
60
60
|
↳ bin/rails:4
|
61
|
-
[1m[35m (0.
|
61
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
62
62
|
↳ bin/rails:4
|
63
|
-
[1m[35m (0.
|
63
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
64
64
|
↳ bin/rails:4
|
65
|
-
[1m[35m (
|
65
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
66
66
|
↳ bin/rails:4
|
67
|
-
[1m[35m (0.
|
67
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
68
68
|
↳ bin/rails:4
|
69
|
-
[1m[35m (0.
|
69
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_attachments"[0m
|
70
70
|
↳ db/schema.rb:15
|
71
|
-
[1m[35m (
|
71
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
72
72
|
↳ db/schema.rb:15
|
73
|
-
[1m[35m (
|
73
|
+
[1m[35m (5.1ms)[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" integer NOT NULL, "blob_id" integer NOT NULL, "created_at" datetime NOT NULL)[0m
|
74
74
|
↳ db/schema.rb:15
|
75
|
-
[1m[35m (
|
75
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")[0m
|
76
76
|
↳ db/schema.rb:15
|
77
|
-
[1m[35m (
|
77
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")[0m
|
78
78
|
↳ db/schema.rb:15
|
79
|
-
[1m[35m (0.
|
79
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "active_storage_blobs"[0m
|
80
80
|
↳ db/schema.rb:25
|
81
|
-
[1m[35m (
|
81
|
+
[1m[35m (3.8ms)[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, "byte_size" bigint NOT NULL, "checksum" varchar NOT NULL, "created_at" datetime NOT NULL)[0m
|
82
82
|
↳ db/schema.rb:25
|
83
|
-
[1m[35m (
|
83
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")[0m
|
84
84
|
↳ db/schema.rb:25
|
85
|
-
[1m[35m (0.
|
85
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "cmor_carousels_carousels"[0m
|
86
86
|
↳ db/schema.rb:36
|
87
|
-
[1m[35m (
|
87
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
88
88
|
↳ db/schema.rb:36
|
89
|
-
[1m[35m (0.
|
89
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "cmor_carousels_item_details"[0m
|
90
90
|
↳ db/schema.rb:44
|
91
|
-
[1m[35m (
|
91
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "cmor_carousels_item_details" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "carousel_id" integer, "asset_id" integer, "url" varchar, "description" text, "position" integer, "published_at" datetime, "created_at" datetime, "updated_at" datetime)[0m
|
92
92
|
↳ db/schema.rb:44
|
93
|
-
[1m[35m (
|
93
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
94
94
|
↳ db/schema.rb:13
|
95
|
-
[1m[35m (0.
|
95
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
96
96
|
↳ db/schema.rb:13
|
97
|
-
[1m[35m (
|
97
|
+
[1m[35m (3.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20190424131958)[0m
|
98
98
|
↳ db/schema.rb:13
|
99
|
-
[1m[35m (
|
100
|
-
(
|
101
|
-
(
|
99
|
+
[1m[35m (4.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
100
|
+
(20190424131957),
|
101
|
+
(20190424131934);
|
102
102
|
|
103
103
|
[0m
|
104
104
|
↳ db/schema.rb:13
|
105
|
-
[1m[35m (
|
105
|
+
[1m[35m (3.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
|
106
106
|
↳ db/schema.rb:13
|
107
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
107
|
+
[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]]
|
108
108
|
↳ db/schema.rb:13
|
109
|
-
[1m[35m (0.
|
109
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
110
110
|
↳ db/schema.rb:13
|
111
|
-
[1m[36mActiveRecord::InternalMetadata Create (
|
111
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2019-04-24 13:19:58.098134"], ["updated_at", "2019-04-24 13:19:58.098134"]]
|
112
112
|
↳ db/schema.rb:13
|
113
|
-
[1m[35m (
|
113
|
+
[1m[35m (4.1ms)[0m [1m[36mcommit transaction[0m
|
114
114
|
↳ db/schema.rb:13
|
115
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.
|
115
|
+
[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]]
|
116
116
|
↳ bin/rails:4
|
117
|
-
[1m[35m (0.
|
117
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
118
118
|
↳ bin/rails:4
|
119
|
-
[1m[36mActiveRecord::InternalMetadata Update (
|
119
|
+
[1m[36mActiveRecord::InternalMetadata Update (0.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2019-04-24 13:19:58.108832"], ["key", "environment"]]
|
120
120
|
↳ bin/rails:4
|
121
|
-
[1m[35m (
|
121
|
+
[1m[35m (4.0ms)[0m [1m[36mcommit transaction[0m
|
122
122
|
↳ bin/rails:4
|