hi Friends,
i have a accounts table and a transaction table see the schema below
-
acc_masteracc_idint(11) – primary key
acc_name
cur_balance
regist_date
update_date -
acc_trans
trans_id – primary key
trans_from – foreign key reference to acc_id (acc_master)
trans_to — foreign key reference to acc_id (acc_master)
trans_date
trans_amount
trans_narration
How can i create a migration file for the 2nd table … how will i
represent 2 foreign key from same table in Rails?
Can any one help for this question please?
Thanks
[email protected]