gab-social/db/migrate/20190607000211_add_group_id_to_statuses.rb

8 lines
187 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
class AddGroupIdToStatuses < ActiveRecord::Migration[5.0]
def change
safety_assured {
add_reference :statuses, :group, foreign_key: { on_delete: :nullify }
}
end
end