mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +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
304 B
Ruby
8 lines
304 B
Ruby
# frozen_string_literal: true
|
|
|
|
# ProfileCustomFields are customer fields, configured by an admin, added to the user's profile
|
|
class ProfileCustomField < ApplicationRecord
|
|
has_many :user_profile_custom_fields, dependent: :destroy
|
|
has_many :invoicing_profiles, through: :user_profile_custom_fields
|
|
end
|