diff --git a/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb b/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb new file mode 100644 index 0000000..c5c8f17 --- /dev/null +++ b/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb @@ -0,0 +1,10 @@ +class AddShoppingCartToProfile < ActiveRecord::Migration + + def self.up + add_column :profiles, :shopping_cart, :boolean, :default => true + end + + def self.down + remove_column :profiles, :shopping_cart + end +end diff --git a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb index 687455f..7c3f7e3 100644 --- a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb +++ b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb @@ -1,7 +1,6 @@