Files
openfoodnetwork/db
Maikel Linke 153360d17b Let the database delete adjustment metadata
GitHub issue #582

We encountered a foreign key violation on adjustment metadata even
though rails should handle that.

    Action: order.adjustments.where(originator_type: 'EnterpriseFee').destroy_all

    Adjustment: has_one :metadata, class_name: 'AdjustmentMetadata' dependent: :destroy

So we update the foreign key to cause a delete in the database.
2015-06-05 16:10:58 +10:00
..
2013-10-30 10:42:23 +11:00
2014-07-17 14:26:46 +10:00
2014-09-14 12:27:24 +10:00