Sha256: b72ac309bf46d75a68a6ef3d437ff259788cab79544813fa9286bb693ec1a3ec

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

class AddFilterableColumnToSpreeOptionTypes < ActiveRecord::Migration[6.0]
  def change
    unless column_exists?(:spree_option_types, :filterable)
      add_column :spree_option_types, :filterable, :boolean, default: true, null: false
    end
    unless index_exists?(:spree_option_types, :filterable)
      add_index :spree_option_types, :filterable
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-4.2.4 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
spree_core-4.2.3.1 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
spree_core-4.2.3 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
spree_core-4.2.2 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
spree_core-4.2.1 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
spree_core-4.2.0 db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb