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