diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 10:31:17 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 10:31:17 +0100 |
commit | dda7f9635fe96eba52110979914ff966188f6e8b (patch) | |
tree | 8c7da5e54935f34380426fb659af0d3ea6880b5f /app/models/issue.rb | |
parent | 5e405bfea9a2748af2652bf5dc51fce89a1794f3 (diff) | |
download | gitlab-ce-dda7f9635fe96eba52110979914ff966188f6e8b.tar.gz |
Add field that references issue this issue has been moved to
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 5f58c0508fd..b506d174155 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -16,6 +16,7 @@ # state :string(255) # iid :integer # updated_by_id :integer +# moved_to_id :integer # require 'carrierwave/orm/activerecord' @@ -31,6 +32,8 @@ class Issue < ActiveRecord::Base ActsAsTaggableOn.strict_case_match = true belongs_to :project + belongs_to :moved_to, class_name: 'Issue' + validates :project, presence: true scope :of_group, |