chore: Automate conversation display_id generation with db triggers (#1412)

Automate conversation display_id generation with db triggers

Co-authored-by: Saurabh Mehta <saurabh1.mehta@airtel.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Saurabh Mehta
2021-01-05 20:07:04 +05:30
committed by GitHub
parent 45059b6fe9
commit 627d3a575a
10 changed files with 102 additions and 18 deletions

View File

@@ -3,7 +3,6 @@
FactoryBot.define do
factory :conversation do
status { 'open' }
display_id { rand(10_000_000) }
agent_last_seen_at { Time.current }
locked { false }
identifier { SecureRandom.hex }