Sha256: 6f658441bc098dd3ba13f9520ef5a10c62605266553b15ea9b7eb9e487d121f3
Contents?: true
Size: 563 Bytes
Versions: 62
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/reporting" module Renalware module Reporting class Audit < ApplicationRecord validates :name, presence: true validates :view_name, presence: true scope :enabled, ->{ where(enabled: true) } def self.available_audit_materialized_views result = connection.execute("SELECT oid::regclass::text FROM pg_class WHERE relkind in ('m', 'v') and relname like 'reporting_%';") result.values.flatten end end end end
Version data entries
62 entries across 62 versions & 1 rubygems