Class: SmsBlock

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

Overview

== Schema Information

Table name: sms_blocks
Database name: primary

id :bigint not null, primary key
block_counts :integer default(0)
notes :text
number :string not null
created_at :datetime
updated_at :datetime
creator_id :integer
updater_id :integer

Indexes

index_sms_blocks_on_number (number) UNIQUE

Constant Summary

Constants included from Schedulable

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 Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#numberObject (readonly)



21
# File 'app/models/sms_block.rb', line 21

validates :number, presence: true