mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Rename Message to Notification
This commit is contained in:
parent
5ba2170324
commit
8765baf319
32 changed files with 243 additions and 229 deletions
|
@ -1,19 +0,0 @@
|
|||
class Message < ActiveRecord::Base
|
||||
include Versions # version/message_version.rb
|
||||
belongs_to :registrar, required: true
|
||||
|
||||
before_create -> { self.queued = true }
|
||||
|
||||
scope :queued, -> { where(queued: true) }
|
||||
|
||||
validates :body, presence: true
|
||||
|
||||
def dequeue
|
||||
self.queued = false
|
||||
save
|
||||
end
|
||||
|
||||
def name
|
||||
"-"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue