Gab-Social/db/migrate/20190804115634_add_quote_id_to_statuses.rb
2019-08-04 15:24:37 +03:00

8 lines
211 B
Ruby

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