summaryrefslogtreecommitdiff
path: root/db/migrate/20160317092222_add_moved_to_to_issue.rb
diff options
context:
space:
mode:
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..461e7fb3a9b
--- /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
+ end
+end