From ea36d20dfaddda14bed0176b8c8f1e3b23232a48 Mon Sep 17 00:00:00 2001 From: Zulfiqar Ali Date: Sun, 8 Dec 2024 23:22:42 -0500 Subject: [PATCH] inheritance column setter needs to be a string --- CHANGELOG.md | 4 ++++ Gemfile.lock | 2 +- lib/eventsimple/event.rb | 2 +- lib/eventsimple/version.rb | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64e712a91..5d2ddc6ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 1.5.6 - 2025-01-02 +### Changed +- inheritance column setter needs to be a string + ## 1.5.5 - 2024-12-23 ### Changed - Validate value and type of `aggregate_id` between Event and Entity diff --git a/Gemfile.lock b/Gemfile.lock index ad90d34f2..69f802ce0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - eventsimple (1.5.5) + eventsimple (1.5.6) concurrent-ruby (>= 1.2.3) dry-struct (~> 1.6) dry-types (~> 1.7) diff --git a/lib/eventsimple/event.rb b/lib/eventsimple/event.rb index a71d74d23..b28123fec 100644 --- a/lib/eventsimple/event.rb +++ b/lib/eventsimple/event.rb @@ -31,7 +31,7 @@ def drives_events_for(aggregate_klass, aggregate_id:, events_namespace: nil) class_attribute :_on_invalid_transition self._on_invalid_transition = ->(error) { raise error } - self.inheritance_column = :type + self.inheritance_column = 'type' self.store_full_sti_class = false attribute :metadata, MetadataType.new diff --git a/lib/eventsimple/version.rb b/lib/eventsimple/version.rb index 0e05afa06..aefc8a6c5 100644 --- a/lib/eventsimple/version.rb +++ b/lib/eventsimple/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Eventsimple - VERSION = '1.5.5' + VERSION = '1.5.6' end