Sha256: fbc168df154a0f9642fd7efa9caa5fd42ea0ae36ef4c500ffb503b3dfd3540b8
Contents?: true
Size: 421 Bytes
Versions: 23
Compression:
Stored size: 421 Bytes
Contents
class RemoveExtraSearchParameterValues < ActiveRecord::Migration def up sql = Discerner::SearchParameterValue.joins(:search_parameter => {:parameter => :parameter_type}).where("discerner_parameter_types.name = 'combobox' and chosen is null").to_sql search_parameter_values_array = Discerner::SearchParameterValue.find_by_sql(sql) search_parameter_values_array.each{|r| r.delete} end def down end end
Version data entries
23 entries across 23 versions & 1 rubygems