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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfd44ded7b03a811fbbe8d6db999c3d04c9a1ca3d5401e1ae650fc407487e3a5
|
|
4
|
+
data.tar.gz: c683180efb5063687ca5ac8410caa6f51dff44ffe1de7ef65c83d30b4bc5052e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/testimonials/version.rb
CHANGED