mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-11 22:24:21 +01:00
af3def0e2e
Previously, the accounting data were built on demand, extracting the data from the invoices on-the-fly. This is intended to be used only once in a while, so there was no performance issue with that. Now, we want those data to be accessed from the OpenAPI, so building them on-the-fly would be very much intensive and resouces heavy. So we build them each nights using a scheduled worker and save them in the database
8 lines
226 B
Ruby
8 lines
226 B
Ruby
# frozen_string_literal: true
|
|
|
|
# UserProfileCustomField store values for custom fields per user's profile
|
|
class UserProfileCustomField < ApplicationRecord
|
|
belongs_to :invoicing_profile
|
|
belongs_to :profile_custom_field
|
|
end
|