diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-03 08:32:21 +0300 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-04 04:58:41 +0300 |
commit | 7ad5a1b371f5d319369a6b9d6609c40dea6292c2 (patch) | |
tree | 2df1a0335961fde770dd4e8594a60d8d6841123f /db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb | |
parent | b82870afc0031cb830976fb36cd1237c6059397f (diff) |
Add last_edited_at and last_edited_by attributes
Diffstat (limited to 'db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb')
-rw-r--r-- | db/migrate/20170503021915_add_last_edited_at_and_last_edited_by_id_to_issues.rb | 14 |
1 files changed, 14 insertions, 0 deletions
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 |