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