excid3 / noticed

Notifications for Ruby on Rails applications
MIT License
2.44k stars 173 forks source link

notifications_count already exists issue fix #393

Closed anton-shch closed 9 months ago

anton-shch commented 9 months ago

Pull Request

Add if_not_exists: true to AddNotificationsCountToNoticedEvent migration

== Schema ===================================================================== == 20240130105617 CreateNoticedTables: migrating ============================== -- create_table(:noticed_events) -> 0.0244s -- create_table(:noticed_notifications) -> 0.0161s == 20240130105617 CreateNoticedTables: migrated (0.0408s) =====================

== Schema ===================================================================== == 20240130105618 AddNotificationsCountToNoticedEvent: migrating ============== -- add_column(:noticed_events, :notifications_count, :integer) bin/rails aborted! StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::DuplicateColumn: ERROR: column "notifications_count" of relation "noticed_events" already exists