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-0.9.72 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.71 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.70 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.69 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.68 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.67 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.66 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.65 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.64 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.63 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.62 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.61 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.60 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.59 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.58 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.57 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.56 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.55 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.54 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.53 db/migrate/20230220144737_add_clazz_id_to_business.rb