Skip to content

Commit 40eb725

Browse files
committed
Release 2.0.0
1 parent 96b3dd6 commit 40eb725

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
# Version 2.0.0
2+
3+
* Breaking change: drop support for Active Record 6.0 and older.
4+
* New detector: `table_without_timestamps` detects tables that don't define
5+
the timestamp columns (contributed by fatkodima).
6+
* New feature: official SQLite support.
7+
* New feature: `missing_non_null_constraint` checks whether timestamp columns
8+
are not `NULL` (contributed by Jon Dufresne).
9+
* Enhancement: `missing_foreign_keys` and `unindexed_foreign_keys` look only at
10+
integer and UUID columns (contributed by fatkodima).
11+
* Enhancement: `missing_foreign_keys` supports tables with `destroy_async`
12+
(contributed by fatkodima).
13+
* Enhancement: `missing_presence_validation` supports inclusion/exclusion
14+
validators, ignores columns with default functions, (contributed by fatkodima)
15+
and supports polymorphic associations.
16+
* Enhancement: `incorrect_length_validation` allows inclusion validations as an
17+
alternative (contributed by fatkodima).
18+
* Bug fix: `missing_presence_validation` ignores counter cache columns
19+
(contributed by fatkodima).
20+
* Bug fix: `incorrect_dependent_option` no longer raises an exception on
21+
incorrectly configured associations (contributed by fatkodima).
22+
* Bug fix: `missing_non_null_constraint` skips contextual validators and
23+
database views (contributed by fatkodima).
24+
* Bug fix: expression index support check (contribued by fatkodima).
25+
* Bug fix: typos and documentation enhancements (Jon Dufresne, Kristján Oddsson,
26+
and Viktor).
27+
128
# Version 1.15.0
229

330
* New feature: detector to find tables without a primary key (contributed by

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ Supported configuration options:
402402

403403
If there's an unconditional presence validation on a column then it should be
404404
marked as non-`NULL`-able at the database level or should have a `IS NOT NULL`
405-
constraint.
405+
constraint. Timestamp columns are also expected to be made `NOT NULL` as they're
406+
managed automatically by Active Record.
406407

407408
In order to detect columns whose presence is required but that are marked
408409
`null: true` in the database run the following command:
@@ -432,7 +433,8 @@ Supported configuration options:
432433
### Detecting Missing Presence Validations
433434

434435
If a column is marked as `null: false` then it's likely it should have the
435-
corresponding presence validator.
436+
corresponding presence validator or an appropriately configured inclusion or
437+
exclusion validation.
436438

437439
In order to detect models lacking these validations run:
438440

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module ActiveRecordDoctor
4-
VERSION = "1.15.0"
4+
VERSION = "2.0.0"
55
end

0 commit comments

Comments
 (0)