Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Add filterable column to spree_option_types

Nathaniel Nandeb390110b8a6d
diff --git a/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb b/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
new file mode 100644
index 0000000000..264457338a
--- /dev/null
+++ b/core/db/migrate/20201012091259_add_filterable_column_to_spree_option_types.rb
@@ -0,0 +1,6 @@
+class AddFilterableColumnToSpreeOptionTypes < ActiveRecord::Migration[6.0]
+ def change
+ add_column :spree_option_types, :filterable, :boolean, default: true, null: false
+ add_index :spree_option_types, :filterable
+ end
+end