diff options
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r-- | app/models/changeset.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 2038266f9..879896fe4 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -23,6 +23,7 @@ class Changeset < ActiveRecord::Base validates_presence_of :repository_id, :revision, :committed_on, :commit_date validates_numericality_of :revision, :only_integer => true validates_uniqueness_of :revision, :scope => :repository_id + validates_uniqueness_of :scmid, :scope => :repository_id, :allow_nil => true def committed_on=(date) self.commit_date = date |