mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
6 lines
157 B
Ruby
6 lines
157 B
Ruby
class PostOneboxRender < ActiveRecord::Base
|
|
belongs_to :post
|
|
belongs_to :onebox_render
|
|
|
|
validates_uniqueness_of :post_id, scope: :onebox_render_id
|
|
end
|