mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
bugfix email dummy
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class AddDummyForMissingEmails < ActiveRecord::Migration
|
||||
def up
|
||||
Enterprise.all.each do |enterprise|
|
||||
enterprise.update_attributes({:email => "missing@example.com"}) if enterprise.read_attribute(:email).blank?
|
||||
enterprise.update_column({:email => "missing@example.com"}) if enterprise.read_attribute(:email).blank?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user