mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
8 lines
247 B
Ruby
8 lines
247 B
Ruby
class OneboxRender < ActiveRecord::Base
|
|
validates_presence_of :url
|
|
validates_presence_of :cooked
|
|
validates_presence_of :expires_at
|
|
|
|
has_many :post_onebox_renders, dependent: :delete_all
|
|
has_many :posts, through: :post_onebox_renders
|
|
end
|