summaryrefslogtreecommitdiff
path: root/db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-30 14:45:54 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-30 14:45:54 +0200
commit36bd6c8494d4d1deb09f749a02aa9981c8d3080f (patch)
tree697f887f318c60bc8731173d7bc2ecdfdc7349e4 /db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb
parenta06827bff934a7b387dc4280a555e0c81cc06604 (diff)
downloadgitlab-ce-36bd6c8494d4d1deb09f749a02aa9981c8d3080f.tar.gz
Show who last edited a comment if it wasn't the original author
Diffstat (limited to 'db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb')
-rw-r--r--db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb b/db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb
new file mode 100644
index 00000000000..78d45c7f96b
--- /dev/null
+++ b/db/migrate/20150730122406_add_updated_by_to_issuables_and_notes.rb
@@ -0,0 +1,7 @@
+class AddUpdatedByToIssuablesAndNotes < ActiveRecord::Migration
+ def change
+ add_column :notes, :updated_by_id, :integer
+ add_column :issues, :updated_by_id, :integer
+ add_column :merge_requests, :updated_by_id, :integer
+ end
+end