Sha256: 6777833b5e8e72e455aba34cf051e1d7b4546c476f5badc2cee1ab21fbd29b1a

Contents?: true

Size: 247 Bytes

Versions: 106

Compression:

Stored size: 247 Bytes

Contents

class AddClazzIdToBusiness < ActiveRecord::Migration[5.2]
  def change
    add_column :educode_sales_businesses, :clazz_id, :integer
    EducodeSales::Business.all.each do |d|
      d.update(clazz_id: d.last_follow_up&.clazz_id)
    end
  end
end

Version data entries

106 entries across 106 versions & 1 rubygems

Version Path
educode_sales-1.10.74 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.73 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.72 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.71 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.70 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.59 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.58 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.49 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.48 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.46 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.41 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.37 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.36 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.35 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.34 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.33 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.31 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.30 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.29 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.28 db/migrate/20230220144737_add_clazz_id_to_business.rb