cmor_carousels 0.0.6.pre → 0.0.7.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +2 -2
  3. data/app/models/cmor/carousels/item_detail.rb +2 -0
  4. data/app/view_helpers/cmor/carousels/application_view_helper.rb +2 -2
  5. data/app/views/cmor/carousels/application_view_helper/_render.html.erb +1 -1
  6. data/app/views/cmor/carousels/application_view_helper/_render.html.haml~ +1 -1
  7. data/lib/cmor/carousels/configuration.rb +0 -4
  8. data/lib/cmor_carousels.rb +2 -2
  9. data/spec/dummy/db/development.sqlite3 +0 -0
  10. data/spec/dummy/db/migrate/{20190331085346_create_active_storage_tables.active_storage.rb → 20190424131934_create_active_storage_tables.active_storage.rb} +0 -0
  11. data/spec/dummy/db/migrate/{20190331085416_create_cmor_carousels_carousels.cmor_carousels.rb → 20190424131957_create_cmor_carousels_carousels.cmor_carousels.rb} +0 -0
  12. 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
  13. data/spec/dummy/db/schema.rb +1 -1
  14. data/spec/dummy/db/test.sqlite3 +0 -0
  15. data/spec/dummy/log/development.log +68 -68
  16. data/spec/dummy/log/test.log +382 -391
  17. data/spec/dummy/tmp/development_secret.txt +1 -1
  18. data/spec/dummy/tmp/storage/{26/AE/26AEgTpLjdUEkfgwDMYvsnMC → 2F/LD/2FLDTKPxMZV6ge31BAXBg8bW} +0 -0
  19. data/spec/dummy/tmp/storage/{6C/k7/6Ck7TjB8q5XHcvFuKurZjF85 → Ek/b3/Ekb3S582aUkjQ4LU2wbS94pJ} +0 -0
  20. data/spec/dummy/tmp/storage/{8s/yQ/8syQAvbeB2riQeBX4yE3ZBA6 → F7/1v/F71v6N241KPcsuWeR5y1epas} +0 -0
  21. data/spec/dummy/tmp/storage/{Je/hz/JehzP6iuNXDQv4ER8G3xtxKu → Gy/DX/GyDXpaitLESY53TS5hB4ECsb} +0 -0
  22. data/spec/dummy/tmp/storage/{L2/6b/L26bUe4BVrLHtDA5k4PyH55Y → J8/tA/J8tAdKVE1RTV6kyzKJnUdrsX} +0 -0
  23. data/spec/dummy/tmp/storage/{b6/Qq/b6QqQjSv3uKCsqkxdh6ad7gP → ML/zF/MLzFDG6KotBpEcjqyp5ssz1T} +0 -0
  24. data/spec/dummy/tmp/storage/{cH/4t/cH4tfkxybxrK48RcN3AfPW5d → RQ/XB/RQXB3kswt1UE4qK2QBWU65h8} +0 -0
  25. data/spec/dummy/tmp/storage/{ca/g3/cag3X6hn5ghy7jyEXcutEeoG → T1/Wg/T1WggUyWv27Km7VcDu6VTjGx} +0 -0
  26. data/spec/dummy/tmp/storage/{oA/Vh/oAVh3cV4vinC3Gjpc2XEKY6Y → bF/mS/bFmSAspcpNqQW4NcZ2BMJF4Q} +0 -0
  27. data/spec/dummy/tmp/storage/{pE/aN/pEaNyVxKkzxyGvC3hAEX8cKN → cY/C4/cYC44zkZ9CzKkhwvDSJ6vduS} +0 -0
  28. data/spec/dummy/tmp/storage/{q5/M4/q5M4DG6JdJNWrZgbiVyZHLb5 → g8/H5/g8H5qQAAxYkVHetonkS1ouiE} +0 -0
  29. data/spec/dummy/tmp/storage/{qF/Xd/qFXdkBHyZBSkLF3J9LzXb3hp → sy/pd/sypdAkZ3jQbQFoPCFx7PaTeM} +0 -0
  30. data/spec/dummy/tmp/storage/{t2/A8/t2A8wMukKNjuCnAwV1hQ4hcn → vg/Gf/vgGfVjnoFRSknpbbbQxWBTvV} +0 -0
  31. data/spec/dummy/tmp/storage/{xk/pK/xkpK28DBGFmAkuYh89UAhZhe → xV/Tq/xVTqSvHQrcnDM4QmxCCdw275} +0 -0
  32. data/spec/factories/cmor/carousels/carousels.rb +0 -4
  33. data/spec/factories/cmor/carousels/item_details.rb +1 -1
  34. metadata +36 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80e37848c2b0c6ff109fb8814eb3791ec08aa8054d490d6f9dc2e2beb144ca0d
4
- data.tar.gz: 7196179fa33a5bdd48830727978be54b642c11fb91b1d44ee75549a25fa947ef
3
+ metadata.gz: 4726bf0305356349e54b2404faf35cb17faf897957e9862fbdcbc946a736289d
4
+ data.tar.gz: 4938c388337e31bb61e2ad93e187d01dcf03902f83d965441f7b7b4d8f4fc4bf
5
5
  SHA512:
6
- metadata.gz: e8427fb1b67c958ebf29907b318ce6edd86e84b7294113dc971def897acb9e0fc84e8d287d6a7f905c5c0f206efeae4a274ba9930b758288e066a943de42ad0c
7
- data.tar.gz: b7a17bf3d14383159520422bf1965b424af4cad1081f7f5fc8a782113aa74a50bb16b0596491c4b2bee13ac2d63d15efb6b79883fcf7ebfbfe557aa340401def
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
- helper Cmor::CarouselsHelper
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).render(:main, autostart: true, interval: 5.0, variant_options: { resize: "1920x1080" })
14
+ # = carousels_helper(self).render_carousel(:main, autostart: true, interval: 5.0, variant_options: { resize: "1920x1080" })
15
15
  #
16
- def render(identifier, options = {})
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).render(item_detail, :description) %>
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: markup_helper(self).render(item_detail, :body))
3
+ - c.add_item(image_source: main_app.url_for(item_detail.asset.variant(variant_options)), caption: item_detail.body)(:html)
@@ -14,10 +14,6 @@ module Cmor
14
14
  mattr_accessor(:carousel_interval)
15
15
 
16
16
  mattr_accessor(:item_image_styles) { {} }
17
-
18
- mattr_accessor(:markup_languages) { [] }
19
-
20
- mattr_accessor(:default_markup_language)
21
17
  end
22
18
  end
23
19
  end
@@ -1,7 +1,7 @@
1
1
  require 'acts_as_list'
2
- require 'acts_as_markup'
2
+ require 'markup-rails'
3
3
  require 'acts_as_published'
4
- require 'cmor_core'
4
+ require 'cmor_core_frontend'
5
5
  require 'mini_magick'
6
6
  require 'rao-view_helper'
7
7
 
Binary file
@@ -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: 2019_03_31_085417) do
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
Binary file
@@ -1,122 +1,122 @@
1
-  (0.4ms) SELECT sqlite_version(*)
1
+  (0.1ms) SELECT sqlite_version(*)
2
2
  ↳ bin/rails:4
3
-  (17.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3
+  (4.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4
4
  ↳ bin/rails:4
5
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
5
+  (3.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
6
6
  ↳ bin/rails:4
7
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8
8
  ↳ bin/rails:4
9
- Migrating to CreateActiveStorageTables (20190331085346)
10
-  (0.2ms) begin transaction
9
+ Migrating to CreateActiveStorageTables (20190424131934)
10
+  (0.1ms) begin transaction
11
11
  ↳ bin/rails:4
12
-  (1.6ms) CREATE 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)
13
- ↳ db/migrate/20190331085346_create_active_storage_tables.active_storage.rb:4
14
-  (0.6ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
15
- ↳ db/migrate/20190331085346_create_active_storage_tables.active_storage.rb:4
16
-  (0.6ms) CREATE 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"
12
+  (0.5ms) CREATE 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)
13
+ ↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:4
14
+  (0.1ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
15
+ ↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:4
16
+  (0.3ms) CREATE 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
  )
20
- ↳ db/migrate/20190331085346_create_active_storage_tables.active_storage.rb:16
21
-  (0.6ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
22
- ↳ db/migrate/20190331085346_create_active_storage_tables.active_storage.rb:16
23
-  (0.5ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
24
- ↳ db/migrate/20190331085346_create_active_storage_tables.active_storage.rb:16
25
- ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190331085346"]]
20
+ ↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
21
+  (0.3ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
22
+ ↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
23
+  (0.2ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
24
+ ↳ db/migrate/20190424131934_create_active_storage_tables.active_storage.rb:16
25
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190424131934"]]
26
26
  ↳ bin/rails:4
27
-  (15.2ms) commit transaction
27
+  (3.9ms) commit transaction
28
28
  ↳ bin/rails:4
29
- Migrating to CreateCmorCarouselsCarousels (20190331085416)
30
-  (0.3ms) begin transaction
29
+ Migrating to CreateCmorCarouselsCarousels (20190424131957)
30
+  (0.1ms) begin transaction
31
31
  ↳ bin/rails:4
32
-  (4.4ms) CREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)
33
- ↳ db/migrate/20190331085416_create_cmor_carousels_carousels.cmor_carousels.rb:4
34
- ActiveRecord::SchemaMigration Create (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190331085416"]]
32
+  (0.5ms) CREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)
33
+ ↳ db/migrate/20190424131957_create_cmor_carousels_carousels.cmor_carousels.rb:4
34
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190424131957"]]
35
35
  ↳ bin/rails:4
36
-  (11.8ms) commit transaction
36
+  (4.0ms) commit transaction
37
37
  ↳ bin/rails:4
38
- Migrating to CreateCmorCarouselsItemDetails (20190331085417)
39
-  (0.3ms) begin transaction
38
+ Migrating to CreateCmorCarouselsItemDetails (20190424131958)
39
+  (0.1ms) begin transaction
40
40
  ↳ bin/rails:4
41
-  (1.3ms) CREATE 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)
42
- ↳ db/migrate/20190331085417_create_cmor_carousels_item_details.cmor_carousels.rb:4
43
- ActiveRecord::SchemaMigration Create (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190331085417"]]
41
+  (0.7ms) CREATE 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)
42
+ ↳ db/migrate/20190424131958_create_cmor_carousels_item_details.cmor_carousels.rb:4
43
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20190424131958"]]
44
44
  ↳ bin/rails:4
45
-  (19.3ms) commit transaction
45
+  (4.2ms) commit transaction
46
46
  ↳ bin/rails:4
47
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
47
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
48
48
  ↳ bin/rails:4
49
-  (0.3ms) begin transaction
49
+  (0.1ms) begin transaction
50
50
  ↳ bin/rails:4
51
- ActiveRecord::InternalMetadata Create (0.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-03-31 08:54:16.771381"], ["updated_at", "2019-03-31 08:54:16.771381"]]
51
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
-  (16.7ms) commit transaction
53
+  (4.3ms) commit transaction
54
54
  ↳ bin/rails:4
55
-  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
55
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56
56
  ↳ bin/rails:4
57
-  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
57
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
58
58
  ↳ bin/rails:4
59
-  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
59
+  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
60
60
  ↳ bin/rails:4
61
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
61
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
62
62
  ↳ bin/rails:4
63
-  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
63
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
64
64
  ↳ bin/rails:4
65
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
65
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
66
66
  ↳ bin/rails:4
67
-  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
67
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
68
68
  ↳ bin/rails:4
69
-  (0.4ms) DROP TABLE IF EXISTS "active_storage_attachments"
69
+  (0.1ms) DROP TABLE IF EXISTS "active_storage_attachments"
70
70
  ↳ db/schema.rb:15
71
-  (1.1ms) SELECT sqlite_version(*)
71
+  (0.1ms) SELECT sqlite_version(*)
72
72
  ↳ db/schema.rb:15
73
-  (11.6ms) CREATE 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)
73
+  (5.1ms) CREATE 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)
74
74
  ↳ db/schema.rb:15
75
-  (10.8ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
75
+  (3.5ms) CREATE INDEX "index_active_storage_attachments_on_blob_id" ON "active_storage_attachments" ("blob_id")
76
76
  ↳ db/schema.rb:15
77
-  (11.8ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
77
+  (4.7ms) CREATE UNIQUE INDEX "index_active_storage_attachments_uniqueness" ON "active_storage_attachments" ("record_type", "record_id", "name", "blob_id")
78
78
  ↳ db/schema.rb:15
79
-  (0.8ms) DROP TABLE IF EXISTS "active_storage_blobs"
79
+  (0.2ms) DROP TABLE IF EXISTS "active_storage_blobs"
80
80
  ↳ db/schema.rb:25
81
-  (11.0ms) CREATE 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)
81
+  (3.8ms) CREATE 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)
82
82
  ↳ db/schema.rb:25
83
-  (12.6ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
83
+  (4.4ms) CREATE UNIQUE INDEX "index_active_storage_blobs_on_key" ON "active_storage_blobs" ("key")
84
84
  ↳ db/schema.rb:25
85
-  (0.3ms) DROP TABLE IF EXISTS "cmor_carousels_carousels"
85
+  (0.2ms) DROP TABLE IF EXISTS "cmor_carousels_carousels"
86
86
  ↳ db/schema.rb:36
87
-  (8.1ms) CREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)
87
+  (4.3ms) CREATE TABLE "cmor_carousels_carousels" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "locale" varchar, "identifier" varchar, "variant_options" varchar, "created_at" datetime, "updated_at" datetime)
88
88
  ↳ db/schema.rb:36
89
-  (0.8ms) DROP TABLE IF EXISTS "cmor_carousels_item_details"
89
+  (0.1ms) DROP TABLE IF EXISTS "cmor_carousels_item_details"
90
90
  ↳ db/schema.rb:44
91
-  (10.0ms) CREATE 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)
91
+  (3.6ms) CREATE 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)
92
92
  ↳ db/schema.rb:44
93
-  (7.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
93
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
94
94
  ↳ db/schema.rb:13
95
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
95
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
96
96
  ↳ db/schema.rb:13
97
-  (7.9ms) INSERT INTO "schema_migrations" (version) VALUES (20190331085417)
97
+  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES (20190424131958)
98
98
  ↳ db/schema.rb:13
99
-  (7.6ms) INSERT INTO "schema_migrations" (version) VALUES
100
- (20190331085346),
101
- (20190331085416);
99
+  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES
100
+ (20190424131957),
101
+ (20190424131934);
102
102
 
103
103
  
104
104
  ↳ db/schema.rb:13
105
-  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
105
+  (3.9ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
106
106
  ↳ db/schema.rb:13
107
- ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
107
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
108
108
  ↳ db/schema.rb:13
109
-  (0.5ms) begin transaction
109
+  (0.1ms) begin transaction
110
110
  ↳ db/schema.rb:13
111
- ActiveRecord::InternalMetadata Create (3.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2019-03-31 08:54:17.060180"], ["updated_at", "2019-03-31 08:54:17.060180"]]
111
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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
-  (6.8ms) commit transaction
113
+  (4.1ms) commit transaction
114
114
  ↳ db/schema.rb:13
115
- ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
115
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
116
116
  ↳ bin/rails:4
117
-  (0.2ms) begin transaction
117
+  (0.1ms) begin transaction
118
118
  ↳ bin/rails:4
119
- ActiveRecord::InternalMetadata Update (2.1ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2019-03-31 08:54:17.082138"], ["key", "environment"]]
119
+ ActiveRecord::InternalMetadata Update (0.4ms) UPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ? [["value", "test"], ["updated_at", "2019-04-24 13:19:58.108832"], ["key", "environment"]]
120
120
  ↳ bin/rails:4
121
-  (5.8ms) commit transaction
121
+  (4.0ms) commit transaction
122
122
  ↳ bin/rails:4