mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
#440: Reset Enterprise columns before querying them.
This commit is contained in:
@@ -2,6 +2,8 @@ class AddPermalinkToEnterprises < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :enterprises, :permalink, :string
|
||||
|
||||
Enterprise.reset_column_information
|
||||
|
||||
Enterprise.all.each do |enterprise|
|
||||
counter = 1
|
||||
permalink = enterprise.name.parameterize
|
||||
|
||||
Reference in New Issue
Block a user