use a has_many :bugs, through: :rails