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.6 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.5 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.3 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.2 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.1 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.0 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.9 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.8 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.7 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.6 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.5 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.4 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.3 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.2 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.1 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.0.0 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.99 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.98 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.97 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.96 db/migrate/20230220144737_add_clazz_id_to_business.rb