Sha256: 1ca7573e102718975a6dc41ec9511e51ce2e99bba20331cf48115a1048a9b45f
Contents?: true
Size: 219 Bytes
Versions: 3
Compression:
Stored size: 219 Bytes
Contents
# frozen_string_literal: true module Aqila module Cache class TableLastChange < ActiveRecord::Base def self.for(model:) find_by(table_name: model.table_name)&.updated_at end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aqila-cache-0.3.0 | lib/aqila/cache/table_last_change.rb |
aqila-cache-0.2.0 | lib/aqila/cache/table_last_change.rb |
aqila-cache-0.1.0 | lib/aqila/cache/table_last_change.rb |