removes user_id column from User model to use idiomatic Rails automatic IDs
This commit is contained in:
@@ -7,11 +7,12 @@ class PayController < ApplicationController
|
||||
def update_dd_info
|
||||
msg = false
|
||||
pay = Pay.new(
|
||||
bank_account_num: params[:bank_account_num],
|
||||
bank_routing_num: params[:bank_routing_num],
|
||||
percent_of_deposit: params[:dd_percent]
|
||||
bank_account_num: params[:bank_account_num],
|
||||
bank_routing_num: params[:bank_routing_num],
|
||||
percent_of_deposit: params[:dd_percent],
|
||||
user_id: current_user.id
|
||||
)
|
||||
pay.user_id = current_user.user_id
|
||||
|
||||
msg = true if pay.save!
|
||||
respond_to do |format|
|
||||
format.json {render json: {msg: msg } }
|
||||
|
||||
Reference in New Issue
Block a user