Sha256: 5aa099ceaa93f033a3c5aa622d6314630dc19c71b2a5f18e7294683a196f76d0

Contents?: true

Size: 328 Bytes

Versions: 159

Compression:

Stored size: 328 Bytes

Contents

class UpdateEducodeSalesFiltersFilterData < ActiveRecord::Migration[5.2]
  def change
    rename_column :educode_sales_filters, :filter_data , :extras
    rename_column :educode_sales_filters, :filter_type, :clazz
    EducodeSales::Filter.find_each do |filter|
      filter.update_attributes!(:extras => nil )
    end
  end
end

Version data entries

159 entries across 159 versions & 1 rubygems

Version Path
educode_sales-0.9.72 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.71 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.70 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.69 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.68 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.67 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.66 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.65 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.64 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.63 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.62 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.61 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.60 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.59 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.58 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.57 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.56 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.55 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.54 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb
educode_sales-0.9.53 db/migrate/20220509073936_update_educode_sales_filters_filter_data.rb