diff --git a/db/migrate/20220425102039_remove_bill_addresses_with_null_phone.rb b/db/migrate/20220425102039_remove_bill_addresses_with_null_phone.rb index 282413a56c..f0d767f95a 100644 --- a/db/migrate/20220425102039_remove_bill_addresses_with_null_phone.rb +++ b/db/migrate/20220425102039_remove_bill_addresses_with_null_phone.rb @@ -1,6 +1,6 @@ class RemoveBillAddressesWithNullPhone < ActiveRecord::Migration[6.1] class BillAddress < ActiveRecord::Base - self.table_name "spree_addresses" + self.table_name = "spree_addresses" scope :invalid, -> { where(phone: nil) } end