Logidze v1.0.0 Release Notes

Release Date: 2020-11-09 // over 3 years ago
    • ➕ Add --name option to model generator to specify the migration name. ([@palkan][])

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

    • Add .with_full_snapshot to add full snapshots to the log instead of diffs. ([@palkan][])

    ⚡️ 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.

    • Add #create_logidze_snapshot! and .create_logidze_snapshot methods. ([@palkan][])

    • ➕ Add integration with fx gem. ([@palkan][])

    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.

    • 🔨 Refactored columns filtering. ([@palkan][])

    📇 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).

    • ⬇️ Dropped support for Rails 4.2, Ruby 2.4 and PostgreSQL 9.5. ([@palkan][])