1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/db/migrate/20190928171705_add_status_to_relationships.rb

11 lines
329 B
Ruby
Raw Permalink Normal View History

2019-09-28 17:21:34 -04:00
# frozen_string_literal: true
class AddStatusToRelationships < ActiveRecord::Migration[6.0]
def change
# rubocop:disable Rails/NotNullColumn
add_reference :relationships, :status, null: false
add_foreign_key :relationships, :relation_statuses, column: :status_id
# rubocop:enable Rails/NotNullColumn
end
end