blob: cd7b2b1d96a2cab136d003b0d29d7e37759136fe (
plain)
1
2
3
4
5
6
7
8
9
|
# 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
|