mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Add allow_charges field to Customer model
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddChargesAllowedToCustomers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :customers, :allow_charges, :boolean, default: false, null: false
|
||||
end
|
||||
end
|
||||
@@ -79,15 +79,16 @@ ActiveRecord::Schema.define(:version => 20180418025217) do
|
||||
add_index "coordinator_fees", ["order_cycle_id"], :name => "index_coordinator_fees_on_order_cycle_id"
|
||||
|
||||
create_table "customers", :force => true do |t|
|
||||
t.string "email", :null => false
|
||||
t.integer "enterprise_id", :null => false
|
||||
t.string "email", :null => false
|
||||
t.integer "enterprise_id", :null => false
|
||||
t.string "code"
|
||||
t.integer "user_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.integer "bill_address_id"
|
||||
t.integer "ship_address_id"
|
||||
t.string "name"
|
||||
t.boolean "allow_charges", :default => false, :null => false
|
||||
end
|
||||
|
||||
add_index "customers", ["bill_address_id"], :name => "index_customers_on_bill_address_id"
|
||||
|
||||
Reference in New Issue
Block a user