Enhancement: Move reporting metrics to postgres (#606)

This commit is contained in:
Subin T P
2020-03-18 16:53:35 +05:30
committed by GitHub
parent f69eb7e542
commit 8f6f07177d
27 changed files with 575 additions and 2 deletions

10
spec/factories/events.rb Normal file
View File

@@ -0,0 +1,10 @@
FactoryBot.define do
factory :event do
name { 'MyString' }
value { 1.5 }
account_id { 1 }
inbox_id { 1 }
user_id { 1 }
conversation_id { 1 }
end
end

View File

@@ -13,7 +13,7 @@ FactoryBot.define do
uid { SecureRandom.uuid }
name { Faker::Name.name }
nickname { Faker::Name.first_name }
email { nickname + '@example.com' }
email { nickname + "@#{SecureRandom.uuid}.com" }
password { 'password' }
after(:build) do |user, evaluator|