6 lines
181 B
6 lines
181 B
6 years ago
|
class ShixunMirrorRepository < ApplicationRecord
|
||
|
belongs_to :shixun
|
||
|
belongs_to :mirror_repository
|
||
|
validates_uniqueness_of :shixun_id, :scope => :mirror_repository_id
|
||
|
end
|