I might be missing something here, but in ticket.rb, it has the line:
has_many :issue
and in issue.rb, it has the line: has_many :ticket
Why a M:N mapping of issues to tickets? Were you planning of future expansion?