gitlab-org--gitlab-foss/db/migrate/20190826100605_add_group_co...

10 lines
242 B
Ruby
Raw Normal View History

# 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