summaryrefslogtreecommitdiff
path: root/db/migrate/20160317092222_add_moved_to_to_issue.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 10:31:17 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-17 10:31:17 +0100
commitdda7f9635fe96eba52110979914ff966188f6e8b (patch)
tree8c7da5e54935f34380426fb659af0d3ea6880b5f /db/migrate/20160317092222_add_moved_to_to_issue.rb
parent5e405bfea9a2748af2652bf5dc51fce89a1794f3 (diff)
downloadgitlab-ce-dda7f9635fe96eba52110979914ff966188f6e8b.tar.gz
Add field that references issue this issue has been moved to
Diffstat (limited to 'db/migrate/20160317092222_add_moved_to_to_issue.rb')
-rw-r--r--db/migrate/20160317092222_add_moved_to_to_issue.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160317092222_add_moved_to_to_issue.rb b/db/migrate/20160317092222_add_moved_to_to_issue.rb
new file mode 100644
index 00000000000..d262983b130
--- /dev/null
+++ b/db/migrate/20160317092222_add_moved_to_to_issue.rb
@@ -0,0 +1,5 @@
+class AddMovedToToIssue < ActiveRecord::Migration
+ def change
+ add_reference :issues, :moved_to, references: :issues, index: true
+ end
+end