mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 19:34:09 +08:00
7 lines
157 B
Ruby
7 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
|