Permalink
Browse files

Merge branch 'master' of github.com:alphagov/panopticon

  • Loading branch information...
2 parents b337386 + b2d7174 commit b2e2f4eae3bd36bf3c04eacce51a2df3850ebaf3 Matthew Wall committed Jan 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/models/related_item.rb
@@ -1,4 +1,6 @@
class RelatedItem < ActiveRecord::Base
belongs_to :source_artefact, :class_name => 'Artefact'
belongs_to :artefact, :counter_cache => true
+
+ validates_uniqueness_of :source_artefact_id, :scope => :artefact_id
end

0 comments on commit b2e2f4e

Please sign in to comment.