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.26 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.25 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.24 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.23 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.22 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.21 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.20 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.19 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.18 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.17 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.16 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.15 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.14 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.13 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.12 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.11 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.10 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.9 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.8 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-1.10.7 db/migrate/20230220144737_add_clazz_id_to_business.rb