gab-social/db/migrate/20190607000211_add_group_id...

8 lines
187 B
Ruby

class AddGroupIdToStatuses < ActiveRecord::Migration[5.0]
def change
safety_assured {
add_reference :statuses, :group, foreign_key: { on_delete: :nullify }
}
end
end