Active record has_many association for one model having two types of values
问题 i am facing a new situation. I know someone definitely had faced these type of situation: I have an invoices table and an invoice_line_items table. Till now every thing is going well with has_many and belongs to association. Now i want to add tax accounts in invoice items, for that i don't want to create a separate table, hence i make below changes in my invoice model : invoice.rb: class Invoice < ActiveRecord::Base has_many :invoice_line_items has_many :tax_line_items, :class_name =>