gab-social/db/migrate/20190804115634_add_quote_id_to_statuses.rb

8 lines
211 B
Ruby
Raw Normal View History

2019-07-29 13:24:37 +01:00
class AddQuoteIdToStatuses < ActiveRecord::Migration[5.2]
def change
safety_assured {
add_reference :statuses, :quote_of, foreign_key: { on_delete: :nullify, to_table: :statuses }
}
end
end