Adding inherits properties flag to products

This commit is contained in:
Rob Harrington
2015-04-22 11:56:45 +10:00
parent a4a41ae26a
commit 1f293bb787
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class AddInheritsPropertiesToProduct < ActiveRecord::Migration
def change
add_column :spree_products, :inherits_properties, :boolean, null: false, default: true
end
end

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20150410043302) do
ActiveRecord::Schema.define(:version => 20150422014819) do
create_table "adjustment_metadata", :force => true do |t|
t.integer "adjustment_id"
@@ -618,9 +618,9 @@ ActiveRecord::Schema.define(:version => 20150410043302) do
t.string "email"
t.text "special_instructions"
t.integer "distributor_id"
t.integer "order_cycle_id"
t.string "currency"
t.string "last_ip_address"
t.integer "order_cycle_id"
t.integer "cart_id"
end
@@ -766,6 +766,7 @@ ActiveRecord::Schema.define(:version => 20150410043302) do
t.string "variant_unit_name"
t.text "notes"
t.integer "primary_taxon_id", :null => false
t.boolean "inherits_properties", :default => true, :null => false
end
add_index "spree_products", ["available_on"], :name => "index_products_on_available_on"