class CreateAdHocOptionTypes < SolidusSupport::Migration[4.2]
  def self.up
    create_table :ad_hoc_option_types do |t|
      t.integer :product_id
      t.integer :option_type_id
      t.string :price_modifier_type, null: true, default: nil
      t.boolean :is_required, default: false
      t.timestamps null: false
    end
  end

  def self.down
    drop_table :ad_hoc_option_types
  end
end
