Add allow_charges field to Customer model

This commit is contained in:
Rob Harrington
2018-04-11 09:54:43 +10:00
parent 6e76fd8164
commit 29922d4be9
2 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
class AddChargesAllowedToCustomers < ActiveRecord::Migration
def change
add_column :customers, :allow_charges, :boolean, default: false, null: false
end
end

View File

@@ -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"