Sha256: 5cc3e3ac57e34de59d2e3d51e4fe2b0441043e2472b4d413243125628d90c56b

Contents?: true

Size: 227 Bytes

Versions: 12

Compression:

Stored size: 227 Bytes

Contents

# frozen_string_literal: true

require 'ditty/models/base'

module Ditty
  class AuditLog < ::Sequel::Model
    include ::Ditty::Base
    many_to_one :user

    def validate
      validates_presence [:action]
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ditty-0.7.2 lib/ditty/models/audit_log.rb
ditty-0.7.1 lib/ditty/models/audit_log.rb
ditty-0.7.0 lib/ditty/models/audit_log.rb
ditty-0.7.0.pre.rc1 lib/ditty/models/audit_log.rb
ditty-0.6.0 lib/ditty/models/audit_log.rb
ditty-0.4.1 lib/ditty/models/audit_log.rb
ditty-0.4.0 lib/ditty/models/audit_log.rb
ditty-0.3.3 lib/ditty/models/audit_log.rb
ditty-0.3.2 lib/ditty/models/audit_log.rb
ditty-0.3.1 lib/ditty/models/audit_log.rb
ditty-0.3.0 lib/ditty/models/audit_log.rb
ditty-0.2.2 lib/ditty/models/audit_log.rb