From 7ad5a1b371f5d319369a6b9d6609c40dea6292c2 Mon Sep 17 00:00:00 2001 From: blackst0ne Date: Wed, 3 May 2017 16:32:21 +1100 Subject: Add last_edited_at and last_edited_by attributes --- ...5_add_last_edited_at_and_last_edited_by_id_to_issues.rb | 14 ++++++++++++++ ...12_add_last_edited_at_and_last_edited_by_id_to_notes.rb | 14 ++++++++++++++ ...st_edited_at_and_last_edited_by_id_to_merge_requests.rb | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb create mode 100644 db/migrate/20170503022512_add_last_edited_at_and_last_edited_by_id_to_notes.rb create mode 100644 db/migrate/20170503022548_add_last_edited_at_and_last_edited_by_id_to_merge_requests.rb (limited to 'db/migrate') diff --git a/db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb b/db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb new file mode 100644 index 00000000000..6ac10723c82 --- /dev/null +++ b/db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddLastEditedAtAndLastEditedByIdToIssues < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + add_column :issues, :last_edited_at, :timestamp + add_column :issues, :last_edited_by_id, :integer + end +end diff --git a/db/migrate/20170503022512_add_last_edited_at_and_last_edited_by_id_to_notes.rb b/db/migrate/20170503022512_add_last_edited_at_and_last_edited_by_id_to_notes.rb new file mode 100644 index 00000000000..a44a1feab16 --- /dev/null +++ b/db/migrate/20170503022512_add_last_edited_at_and_last_edited_by_id_to_notes.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddLastEditedAtAndLastEditedByIdToNotes < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + add_column :notes, :last_edited_at, :timestamp + add_column :notes, :last_edited_by_id, :integer + end +end diff --git a/db/migrate/20170503022548_add_last_edited_at_and_last_edited_by_id_to_merge_requests.rb b/db/migrate/20170503022548_add_last_edited_at_and_last_edited_by_id_to_merge_requests.rb new file mode 100644 index 00000000000..7a1acdcbf69 --- /dev/null +++ b/db/migrate/20170503022548_add_last_edited_at_and_last_edited_by_id_to_merge_requests.rb @@ -0,0 +1,14 @@ +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddLastEditedAtAndLastEditedByIdToMergeRequests < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + def change + add_column :merge_requests, :last_edited_at, :timestamp + add_column :merge_requests, :last_edited_by_id, :integer + end +end -- cgit v1.2.1