Download Latest Version 1.3.0 source code.tar.gz (152.5 kB)
Email in envelope

Get an email when there's a new version of Logidze

Home / v1.0.0
Name Modified Size InfoDownloads / Week
Parent folder
1.0.0 source code.tar.gz 2020-11-09 145.6 kB
1.0.0 source code.zip 2020-11-09 203.2 kB
README.md 2020-11-09 1.3 kB
Totals: 3 Items   350.1 kB 0

Features

  • Added integration with fx gem.

Now it's possible to use Logidze with schema.rb. Add fx gem to the project, and new migrations will be using Fx create_function / create_trigger functions.

  • Added .with_full_snapshot to add full snapshots to the log instead of diffs.

Useful in combination with .without_logging: first, you perform multiple updates without logging, then you do something like with_full_snapshot { record.touch } to create a log entry with the current state.

  • Added #create_logidze_snapshot! and .create_logidze_snapshot methods.

Changes

  • Refactored columns filtering.

Renamed --whitelist/--blacklist to --only/--except correspondingly.

The only-logic has been changed: previously we collected the list of columns to ignore at the migration generation time, now we filter the columns within the trigger function (thus, schema changes do not affect the columns being tracked).

  • Add --name option to model generator to specify the migration name.

When you update Logidze installation for a model multiple times, you might hit the DuplicateMigrationNameError (see #167).

  • Dropped support for Rails 4.2, Ruby 2.4 and PostgreSQL 9.5.
Source: README.md, updated 2020-11-09