Hello,
Below are my Models and Tables/Migrations and I want Query Code based on them
Model: FinanceFeeCategory Table: finance_fee_categories Fields: id,name,batch_id
Model: FinanceFeeParticular Table: finance_fee_particulars Fields: id,finance_fee_category_id,student_category_id,admission_no,batch_id, due_date
Model: Batch Table: batches Fields: id, name
Relationships:
class FinanceFeeCategory < ActiveRecord::Base belongs_to :batch belongs_to :student