master
Invoice
class Invoice < ApplicationRecord include AASM has_many :payments has_many :batches, as: :batchable#, :polymorphic => true