openfoodfoundation/openfoodnetwork

View on GitHub
db/migrate/20230516054204_require_payment_method_and_distributor_on_distributor_payment_methods.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class RequirePaymentMethodAndDistributorOnDistributorPaymentMethods < ActiveRecord::Migration[7.0]
  def change
    change_column_null :distributors_payment_methods, :payment_method_id, false
    change_column_null :distributors_payment_methods, :distributor_id, false
  end
end