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.95 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.94 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.93 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.92 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.91 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.90 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.89 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.86 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.84 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.83 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.82 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.81 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.80 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.79 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.78 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.77 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.76 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.75 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.74 db/migrate/20230220144737_add_clazz_id_to_business.rb
educode_sales-0.9.73 db/migrate/20230220144737_add_clazz_id_to_business.rb