From b5d33fc4b586eb8a8314f66453de65dad4c82ec0 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 16 Sep 2016 12:46:46 +1000 Subject: [PATCH] Add migrations from Spree --- .../20160916024535_add_state_to_spree_adjustments.spree.rb | 7 +++++++ db/schema.rb | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20160916024535_add_state_to_spree_adjustments.spree.rb diff --git a/db/migrate/20160916024535_add_state_to_spree_adjustments.spree.rb b/db/migrate/20160916024535_add_state_to_spree_adjustments.spree.rb new file mode 100644 index 0000000000..a4224678df --- /dev/null +++ b/db/migrate/20160916024535_add_state_to_spree_adjustments.spree.rb @@ -0,0 +1,7 @@ +# This migration comes from spree (originally 20121213162028) +class AddStateToSpreeAdjustments < ActiveRecord::Migration + def change + add_column :spree_adjustments, :state, :string + remove_column :spree_adjustments, :locked + end +end diff --git a/db/schema.rb b/db/schema.rb index 75c43b1d72..c0583e5f54 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -401,12 +401,12 @@ ActiveRecord::Schema.define(:version => 20161215230219) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.boolean "mandatory" - t.boolean "locked" t.integer "originator_id" t.string "originator_type" t.boolean "eligible", :default => true t.string "adjustable_type" t.decimal "included_tax", :precision => 10, :scale => 2, :default => 0.0, :null => false + t.string "state" end add_index "spree_adjustments", ["adjustable_id"], :name => "index_adjustments_on_order_id" @@ -586,9 +586,9 @@ ActiveRecord::Schema.define(:version => 20161215230219) 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" t.integer "customer_id" end