c8a115c0e3
Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown references in descriptions, titles, or attached Notes creates a back-reference Note that links to the original referencer. Furthermore, pushing commits with commit messages that match a (configurable) regexp to a project's default branch will close any issues mentioned by GFM in the matched closing phrase. If accepting a merge request would close any Issues in this way, a banner is appended to the merge request's main panel to indicate this.
16 lines
376 B
Ruby
16 lines
376 B
Ruby
class AddSystemToNotes < ActiveRecord::Migration
|
|
class Note < ActiveRecord::Base
|
|
end
|
|
|
|
def up
|
|
add_column :notes, :system, :boolean, default: false, null: false
|
|
|
|
Note.reset_column_information
|
|
Note.update_all(system: false)
|
|
Note.where("note like '_status changed to%'").update_all(system: true)
|
|
end
|
|
|
|
def down
|
|
remove_column :notes, :system
|
|
end
|
|
end
|