gitlab-org--gitlab-foss/db/migrate/20190826100605_add_group_column_to_events.rb
Jan Provaznik 243bd0202f Create an event on epic actions
Creates new event when an epic is created, closed, reopened or
commented.
2019-09-03 21:29:55 +00:00

9 lines
242 B
Ruby

# frozen_string_literal: true
class AddGroupColumnToEvents < ActiveRecord::Migration[5.2]
DOWNTIME = false
def change
add_reference :events, :group, index: true, foreign_key: { to_table: :namespaces, on_delete: :cascade }
end
end