mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Add migrations from Spree
This commit is contained in:
committed by
Rob Harrington
parent
f5c4537afa
commit
b5d33fc4b5
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user