diff --git a/db/migrate/20150422014819_add_inherits_properties_to_product.rb b/db/migrate/20150422014819_add_inherits_properties_to_product.rb new file mode 100644 index 0000000000..aba8bbbe45 --- /dev/null +++ b/db/migrate/20150422014819_add_inherits_properties_to_product.rb @@ -0,0 +1,5 @@ +class AddInheritsPropertiesToProduct < ActiveRecord::Migration + def change + add_column :spree_products, :inherits_properties, :boolean, null: false, default: true + end +end diff --git a/db/schema.rb b/db/schema.rb index f30408c2ac..627dd8aa8c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"