testimonials 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1472a2172dce3259de44e1af6de8a7c6466d0589a6afeb037900cb154b08e5b9
4
- data.tar.gz: a928753201311457628c7e38adf8164227d329d5bb753395a267c916dbdeaa08
3
+ metadata.gz: bfd44ded7b03a811fbbe8d6db999c3d04c9a1ca3d5401e1ae650fc407487e3a5
4
+ data.tar.gz: c683180efb5063687ca5ac8410caa6f51dff44ffe1de7ef65c83d30b4bc5052e
5
5
  SHA512:
6
- metadata.gz: 0c312e4bdff8a87463bbcbdd842a4bbe711ac2557ead095ce86f70918f70eba937ec08f00a6477c969ed1bcbfa1f6ca654c31c414c040b40fa64852f14a250d8
7
- data.tar.gz: 272c88fc2b1bad4baf46849be45c2b5b9c6e2ce969cd2f0285c7cd04121e805e716026c17d4c9b8312792e85a5b35f3ad8c6d43de6876774f412c99cfe479cbf
6
+ metadata.gz: 4ec04128d604bceebd38bec356b7511e4fa2823256ec1e6a59c5224d51aca6359bc8420d0f5e76bc303f46df001494b024e38b94ee888536fa4f97b0ff47f179
7
+ data.tar.gz: 94512ae9beeca12776e3aadcf5641e550b5733650c233d60e16ec449568d88ea38e4a4a84e36ceda03f2e0f80c133cd47315569ee14b73a64703183c9053d823
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.1
4
+
5
+ - Dropped the redundant `(tenant, status)` index from the install and tenant
6
+ migration templates. A B-tree serves any leftmost prefix, so
7
+ `(tenant, status, consent_given)` already covers it, and every scope on the
8
+ model starts with `for_tenant` — carrying both only cost write time and disk.
9
+ Flagged by `active_record_doctor` in a host app.
10
+ - Existing installs keep the index until they drop it themselves; nothing
11
+ breaks either way. To reclaim it:
12
+
13
+ ```ruby
14
+ class RemoveRedundantTestimonialsIndex < ActiveRecord::Migration[8.0]
15
+ def change
16
+ remove_index :testimonials_testimonials, %i[tenant status]
17
+ end
18
+ end
19
+ ```
20
+
21
+ - A generator test now fails the build if any index is a leftmost prefix of
22
+ another on the same table.
23
+
3
24
  ## 0.8.0
4
25
 
5
26
  - **`config.admin_layout` now works on its own.** The dashboard's stylesheet and
@@ -24,7 +24,6 @@ class CreateTestimonialsTables < ActiveRecord::Migration<%= migration_version %>
24
24
  t.timestamps
25
25
  end
26
26
  add_index :testimonials_testimonials, :status
27
- add_index :testimonials_testimonials, %i[tenant status]
28
27
  add_index :testimonials_testimonials, %i[tenant status consent_given]
29
28
  <% unless options[:skip_nps] -%>
30
29
 
@@ -3,7 +3,6 @@
3
3
  class AddTenantToTestimonials < ActiveRecord::Migration<%= migration_version %>
4
4
  def change
5
5
  add_column :testimonials_testimonials, :tenant, :string
6
- add_index :testimonials_testimonials, %i[tenant status]
7
6
  add_index :testimonials_testimonials, %i[tenant status consent_given]
8
7
 
9
8
  # The optional tables: an install run with --skip-nps or
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Testimonials
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testimonials
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Shmarov