Class: Thumb

Inherits:
ApplicationRecord show all
Defined in:
app/models/thumb.rb

Overview

== Schema Information

Table name: thumbs
Database name: primary

id :bigint not null, primary key
app :enum default("default"), not null
last_used_at :datetime
original_uid :string
signature :string
uid :string
created_at :datetime

Indexes

signature_app (signature,app)

Constant Summary

Constants included from Models::Schedulable

Models::Schedulable::SIMPLE_FORM_OPTIONS

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#signaturevoid (readonly)

This method returns an undefined value.

Validations:



20
# File 'app/models/thumb.rb', line 20

validates :uid, :signature, presence: true

#uidvoid (readonly)

This method returns an undefined value.



20
# File 'app/models/thumb.rb', line 20

validates :uid, :signature, presence: true