gab-social/db/migrate/20190607000211_add_group_id_to_statuses.rb
2019-07-02 03:10:25 -04:00

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