blob: 18cee55d06e706de85c9a85cffe6ee70c9e68bb1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
class RawUsageData < ApplicationRecord
validates :payload, presence: true
validates :recorded_at, presence: true, uniqueness: true
def update_sent_at!
self.update_column(:sent_at, Time.current) if Feature.enabled?(:save_raw_usage_data)
end
end
|